fix: 对齐租户端鉴权与后端菜单流程

将登录/用户信息/权限/菜单接口对齐到租户后端,补充默认租户头与令牌刷新逻辑,并强制使用后端菜单模式以保证登录后触发 /auth/menu 加载。
This commit is contained in:
2026-02-06 12:40:55 +08:00
parent 09b73076da
commit a1935f4008
9 changed files with 175 additions and 73 deletions

View File

@@ -1,4 +1,4 @@
import { initPreferences } from '@vben/preferences';
import { initPreferences, updatePreferences } from '@vben/preferences';
import { unmountGlobalLoading } from '@vben/utils';
import { overridesPreferences } from './preferences';
@@ -19,6 +19,13 @@ async function initApplication() {
overrides: overridesPreferences,
});
updatePreferences({
app: {
accessMode: 'backend',
defaultHomePath: '/dashboard/console',
},
});
// 启动应用并挂载
// vue应用主要逻辑及视图
const { bootstrap } = await import('./bootstrap');