From c273ae21d9aa94e71b0e17311eae1d313d5afc4f Mon Sep 17 00:00:00 2001 From: yangsy Date: Thu, 8 Jan 2026 14:07:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E7=99=BB=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E5=90=AF=E7=94=A8=E7=A6=BB=E7=BA=BF=E5=BC=80=E5=8F=91=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F=E5=90=8E=E6=B7=BB=E5=8A=A0=E9=BB=98=E8=AE=A4=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/stores/setting.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/stores/setting.ts b/src/stores/setting.ts index 55337af..289e75c 100644 --- a/src/stores/setting.ts +++ b/src/stores/setting.ts @@ -45,6 +45,16 @@ export const useSettingStore = defineStore( if (!userStore.userLoginResult.token) { userStore.userLoginResult.token = 'test'; } + if (!userStore.userInfo) { + userStore.userInfo = { + id: '2', + username: 'lamp', + nickName: '内置超管', + mobile: '15211111110', + employeeId: '2', + tenantId: '1', + }; + } if (router.currentRoute.value.path === '/login') { router.push({ path: '/' }); }