jiangping
2024-06-07 745e5c3ca2c8c2dc3b83ffb36f4ba48ba9dae09a
h5/store/index.js
@@ -26,7 +26,8 @@
      time: time || null,
      userInfo: userInfo || {},
      height: height || '0',
      sessionKey: sessionKey || ''
      sessionKey: sessionKey || '',
      primaryColor: '#279baa'
   },
   mutations: {
@@ -72,7 +73,7 @@
      // 清空所有缓存
      empty(state) {
         state.token = ''
         state.userInfo = ''
         state.userInfo = {}
         uni.removeStorageSync('userInfo')
         uni.removeStorageSync('token')
      }