fix: 强制使用后端路由模式

This commit is contained in:
sunlei 2026-06-01 18:09:40 +08:00
parent cd49c8e5da
commit 9fc876b006

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';
@ -18,6 +18,11 @@ async function initApplication() {
namespace,
overrides: overridesPreferences,
});
updatePreferences({
app: {
accessMode: 'backend',
},
});
// 启动应用并挂载
// vue应用主要逻辑及视图