chore: optimize the i18n code of router; 🌟

This commit is contained in:
chenghongxing
2020-07-20 21:39:00 +08:00
parent d91f3a8661
commit d21a2ab062
12 changed files with 144 additions and 110 deletions

View File

@@ -6,7 +6,6 @@ export default {
isMobile: false,
animates: ADMIN.animates,
palettes: ADMIN.palettes,
routesI18n: {},
dustbins: [],
...config,
},
@@ -38,9 +37,6 @@ export default {
setLang(state, lang) {
state.lang = lang
},
setRoutesI18n(state, i18n) {
state.routesI18n = i18n
},
setHideSetting(state, hideSetting) {
state.hideSetting = hideSetting
},