jiangping
2024-08-26 e23a1db0b60437f17d09d65c65f8fd0c8a5d88c7
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: {
@@ -69,7 +71,7 @@
         state.sessionKey = val
         uni.setStorageSync('sessionKey', val)
      },
      // 清空所有缓存
      // 清空登录缓存
      empty(state) {
         state.token = ''
         state.userInfo = {}