|
|
@ -3,6 +3,7 @@ import {ADMIN} from '@/config/default' |
|
|
|
import {formatFullPath} from '@/utils/i18n' |
|
|
|
import {formatFullPath} from '@/utils/i18n' |
|
|
|
import {filterMenu} from '@/utils/authority-utils' |
|
|
|
import {filterMenu} from '@/utils/authority-utils' |
|
|
|
import {getLocalSetting} from '@/utils/themeUtil' |
|
|
|
import {getLocalSetting} from '@/utils/themeUtil' |
|
|
|
|
|
|
|
import deepClone from 'lodash.clonedeep' |
|
|
|
|
|
|
|
|
|
|
|
const localSetting = getLocalSetting(true) |
|
|
|
const localSetting = getLocalSetting(true) |
|
|
|
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY) |
|
|
|
const customTitlesStr = sessionStorage.getItem(process.env.VUE_APP_TBAS_TITLES_KEY) |
|
|
@ -25,7 +26,7 @@ export default { |
|
|
|
menuData(state, getters, rootState) { |
|
|
|
menuData(state, getters, rootState) { |
|
|
|
if (state.filterMenu) { |
|
|
|
if (state.filterMenu) { |
|
|
|
const {permissions, roles} = rootState.account |
|
|
|
const {permissions, roles} = rootState.account |
|
|
|
return filterMenu(state.menuData, permissions, roles) |
|
|
|
return filterMenu(deepClone(state.menuData), permissions, roles) |
|
|
|
} |
|
|
|
} |
|
|
|
return state.menuData |
|
|
|
return state.menuData |
|
|
|
}, |
|
|
|
}, |
|
|
|