From 4cf4183e894b0ad99d2b7dd63b711fcddb213db7 Mon Sep 17 00:00:00 2001
From: wujingjing <gersonwu@qq.com>
Date: 星期四, 14 十一月 2024 16:39:41 +0800
Subject: [PATCH] isNew

---
 src/stores/chatRoom.ts |   22 ++++++++++++++++++----
 1 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts
index 75fb5c8..789d484 100644
--- a/src/stores/chatRoom.ts
+++ b/src/stores/chatRoom.ts
@@ -3,6 +3,7 @@
 import type { ChatRoomItem } from '../layout/component/sidebar/components/types';
 import { router } from '../router';
 import { gotoRoute } from '../utils/route';
+import { Local } from '../utils/storage';
 /**
  * Room 鍏宠仈鐨勪竴浜涢厤缃�
  */
@@ -174,7 +175,20 @@
 		});
 	}
 };
-// 鏄惁宸茬粡灞曠ず寮曞
-export const hadShowFirstGuide = ref(false);
-//鏄惁鏄柊鑰佺敤鎴�
-export const isNewOldUser = ref(null);
+
+
+// 鐢ㄦ埛淇℃伅
+export const userInfo ={
+	get:()=>{
+		return Local.get('userInfo');
+	},
+	set:(val)=>{
+		return Local.set('userInfo',val);
+	},
+	clear:()=>{
+		Local.remove('userInfo');
+	},
+	get isNew(){
+		return !!this.get()?.web_login;
+	}
+}
\ No newline at end of file

--
Gitblit v1.9.3