feat: add function of saving personal setting to local;

新增:增加保存个人主题配置到本地的功能;
This commit is contained in:
iczer
2020-09-13 17:14:28 +08:00
parent fb146e2a36
commit c61570d2ff
7 changed files with 155 additions and 83 deletions

View File

@@ -2,6 +2,9 @@ import config from '@/config'
import {ADMIN} from '@/config/default'
import {formatFullPath} from '@/utils/i18n'
import {filterMenu} from '@/utils/authority-utils'
import {getLocalSetting} from '@/utils/themeUtil'
const localSetting = getLocalSetting(true)
export default {
namespaced: true,
@@ -13,6 +16,7 @@ export default {
menuData: [],
activatedFirst: undefined,
...config,
...localSetting
},
getters: {
menuData(state, getters, rootState) {