From aa2d6665f95a0701b61272fd8065663070565034 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期二, 15 四月 2025 12:31:05 +0800 Subject: [PATCH] bug fix: pat_id dev_id 都为空时 不应该取患者列表 --- src/store/modules/user.ts | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index b386180..379eb10 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -6,7 +6,7 @@ const { wsCache } = useCache() -interface UserVO { +export interface UserVO { id: number avatar: string nickname: string @@ -30,8 +30,8 @@ id: 0, avatar: '', nickname: '', - deptId: 0 - } + deptId: 0, + }, }), getters: { getPermissions(): string[] { @@ -45,7 +45,7 @@ }, getUser(): UserVO { return this.user - } + }, }, actions: { async setUserInfoAction() { -- Gitblit v1.9.3