From e23a1db0b60437f17d09d65c65f8fd0c8a5d88c7 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期一, 26 八月 2024 18:11:07 +0800
Subject: [PATCH] 最新版本

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

diff --git a/h5/store/index.js b/h5/store/index.js
index a363be0..44fb682 100644
--- a/h5/store/index.js
+++ b/h5/store/index.js
@@ -18,6 +18,7 @@
 const store = new Vuex.Store({
 
 	state: {
+		// openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
 		openId: openId || '',
 		member: member || null,
 		statusbarHeight: statusbarHeight || '0',
@@ -26,7 +27,8 @@
 		time: time || null,
 		userInfo: userInfo || {},
 		height: height || '0',
-		sessionKey: sessionKey || ''
+		sessionKey: sessionKey || '',
+		primaryColor: '#279baa'
 	},
 
 	mutations: {
@@ -69,10 +71,10 @@
 			state.sessionKey = val
 			uni.setStorageSync('sessionKey', val)
 		},
-		// 娓呯┖鎵�鏈夌紦瀛�
+		// 娓呯┖鐧诲綍缂撳瓨
 		empty(state) {
 			state.token = ''
-			state.userInfo = ''
+			state.userInfo = {}
 			uni.removeStorageSync('userInfo')
 			uni.removeStorageSync('token')
 		}

--
Gitblit v1.9.3