From 1b145b5655fa023032c8713bb2375bccdf0fc314 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期四, 24 十月 2024 11:13:40 +0800 Subject: [PATCH] 领用完成后 立即刷新 患者列表 --- src/store/modules/user.ts | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts index 60867c8..a611f6c 100644 --- a/src/store/modules/user.ts +++ b/src/store/modules/user.ts @@ -23,7 +23,7 @@ // 鍖荤敓璇婂閫夋嫨 isSetRoom: boolean - room: RoomVO | null + room: RoomVO } export const useUserStore = defineStore('admin-user', { @@ -40,10 +40,10 @@ // 鍖荤敓璇婂閫夋嫨 isSetRoom: false, room: { - id: 0, - roomId: 0, - roomName: "", - bedNo: "", + id: null, + roomId: null, + roomName: null, + bedNo: null, status: null, docId: null, docName: null @@ -110,7 +110,14 @@ // 鍖荤敓绂诲骇 async clearRoomInfoAction() { // 娓� store - this.room = null + this.room.id = null + this.room.roomId = null + this.room.roomName = null + this.room.bedNo = null + this.room.status = null + this.room.docId = null + this.room.docName = null + this.isSetRoom = false // 鏇存柊 cache -- Gitblit v1.9.3