From 9fc876b006e1d3bdcb095031464b6e79d5149eff Mon Sep 17 00:00:00 2001 From: sunlei Date: Mon, 1 Jun 2026 18:09:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=BA=E5=88=B6=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E5=90=8E=E7=AB=AF=E8=B7=AF=E7=94=B1=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antdv-next/src/main.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/web-antdv-next/src/main.ts b/apps/web-antdv-next/src/main.ts index 5d728a0..341cbbd 100644 --- a/apps/web-antdv-next/src/main.ts +++ b/apps/web-antdv-next/src/main.ts @@ -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应用主要逻辑及视图