k94314517
2024-06-28 ecbdab9da9488cc58a1ac7064f9cffde4792fba4
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: {
@@ -72,7 +74,7 @@
      // 清空所有缓存
      empty(state) {
         state.token = ''
         state.userInfo = ''
         state.userInfo = {}
         uni.removeStorageSync('userInfo')
         uni.removeStorageSync('token')
      }