20260917212907
This commit is contained in:
1 parent
6fa3d8535e
commit
5cbf745bbf
115 files changed
+4104
-85
No files matched your search
@@ -44,10 +44,12 @@ router.beforeEach(async (to) => {
|
||||
menuStore.load().catch(() => {}),
|
||||
])
|
||||
|
||||
// 业务数据多语言配置(s_i18n_type 语言清单):随权限一并加载,
|
||||
// 供菜单/模块等多语言编辑读取;内部去重、失败不阻断页面
|
||||
// 业务数据多语言配置(s_i18n_type 语言清单 + s_i18n 译文):随权限一并加载,
|
||||
// 供菜单/模块等多语言编辑读取;内部去重、失败不阻断页面。
|
||||
// 译文在这里兜一次底:App.vue 的 watcher 负责语言切换,这里负责登录后首次进入
|
||||
const languagesStore = useI18nStore()
|
||||
await languagesStore.loadLanguages().catch(() => {})
|
||||
await languagesStore.loadMessages().catch(() => {})
|
||||
|
||||
const moduleId = to.meta.moduleId
|
||||
if (moduleId && !permissionStore.canAccess(moduleId)) {
|
||||
|
||||
Reference in new issue
Block a user