From a8c03746e6bd8ac1d46dc48c1b10bceff543664f Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 10 十二月 2024 20:16:12 +0800
Subject: [PATCH] ll

---
 h5/store/index.js |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/h5/store/index.js b/h5/store/index.js
index a0a9693..9e5b043 100644
--- a/h5/store/index.js
+++ b/h5/store/index.js
@@ -19,8 +19,7 @@
 const store = new Vuex.Store({
 
 	state: {
-		// openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
-		openId: openId || '123123',
+		openId: openId || '',
 		member: member || null,
 		statusbarHeight: statusbarHeight || '0',
 		navHeight: navHeight || '0',
@@ -80,12 +79,11 @@
 		},
 		// 娓呯┖鐧诲綍缂撳瓨
 		empty(state) {
+			uni.clearStorageSync()
 			state.token = ''
+			state.openId = ''
 			state.userInfo = {}
 			state.driverInfo = {}
-			uni.removeStorageSync('userInfo')
-			uni.removeStorageSync('driverInfo')
-			uni.removeStorageSync('token')
 		}
 	},
 	actions: {

--
Gitblit v1.9.3