From ecbdab9da9488cc58a1ac7064f9cffde4792fba4 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 28 六月 2024 09:51:01 +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 bd9028ab..884b032 100644
--- a/h5/store/index.js
+++ b/h5/store/index.js
@@ -18,7 +18,8 @@
const store = new Vuex.Store({
state: {
- openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
+ // openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09',
+ openId: openId || '',
member: member || null,
statusbarHeight: statusbarHeight || '0',
navHeight: navHeight || '0',
@@ -26,7 +27,8 @@
time: time || null,
userInfo: userInfo || {},
height: height || '0',
- sessionKey: sessionKey || ''
+ sessionKey: sessionKey || '',
+ primaryColor: '#279baa'
},
mutations: {
@@ -72,7 +74,7 @@
// 娓呯┖鎵�鏈夌紦瀛�
empty(state) {
state.token = ''
- state.userInfo = ''
+ state.userInfo = {}
uni.removeStorageSync('userInfo')
uni.removeStorageSync('token')
}
--
Gitblit v1.9.3