From 500078714411487af00161e01bd7e0b5efdc3414 Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期四, 07 八月 2025 13:32:32 +0800
Subject: [PATCH] add:热门景点

---
 store/user.ts |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/store/user.ts b/store/user.ts
index e9535f7..bfca100 100644
--- a/store/user.ts
+++ b/store/user.ts
@@ -86,7 +86,12 @@
         // 如果你有持久化,这里也同步一下
         // storage.setItem('userInfo', userInfo.value)
       }
-      
+    function $reset() {
+        hasLogin.value = false
+        isBind.value = false
+        userInfo.value = null
+        address.value = null
+    }
 
     return {
         hasLogin,
@@ -97,5 +102,6 @@
         getCurrentInfo,
         initLoginState,
         updateAddress,
+        $reset,
     }
 })

--
Gitblit v1.9.3