From 812ffe6f989303514b45f8106f09ff902bbe0d8a Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 31 十月 2024 16:19:56 +0800
Subject: [PATCH] update

---
 src/store/modules/user.ts |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/src/store/modules/user.ts b/src/store/modules/user.ts
index 60867c8..ed1f54e 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,13 +40,16 @@
     // 鍖荤敓璇婂閫夋嫨
     isSetRoom: false,
     room: {
-      id: 0,
-      roomId: 0,
-      roomName: "",
-      bedNo: "",
+      id: null,
+      roomId: null,
+      roomName: null,
+      bedNo: null,
+      ip: null,
       status: null,
       docId: null,
-      docName: null
+      docName: null,
+      checkTypes: null,
+      opType: null
     }
   }),
   getters: {
@@ -97,6 +100,8 @@
       this.room!.status = room.status
       this.room!.docId = room.docId
       this.room!.docName = room.docName
+      this.room!.checkTypes = room.checkTypes
+      this.room!.opType = room.opType
       this.isSetRoom = true
 
       // 鏇存柊 cache
@@ -110,7 +115,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
@@ -159,9 +171,12 @@
         roomId: 0,
         roomName: "",
         bedNo: "",
+        ip: "",
         status: null,
         docId: null,
-        docName: null
+        docName: null,
+        checkTypes: null,
+        opType: null
       }
     }
   }

--
Gitblit v1.9.3