CN-39 feat: 地图

This commit is contained in:
chenjinsong
2021-07-01 15:39:48 +08:00
parent fbdf0ba81e
commit 3a30733be0
29 changed files with 126 additions and 5867 deletions

View File

@@ -7,7 +7,8 @@ const store = createStore({
},
state () {
return {
isShrink: localStorage.getItem('cn-left-menu-shrink') === 'true'
isShrink: localStorage.getItem('cn-left-menu-shrink') === 'true',
i18n: false
}
},
getters: {
@@ -19,6 +20,9 @@ const store = createStore({
isShrink (state) {
state.isShrink = !state.isShrink
localStorage.setItem('cn-left-menu-shrink', state.isShrink)
},
loadI18n (state) {
state.i18n = true
}
}
})