feat: add function of saving personal setting to local; ⭐
新增:增加保存个人主题配置到本地的功能;
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user