h5/store/index.js
@@ -19,7 +19,6 @@ const store = new Vuex.Store({ state: { // openId: openId || '061kuG0006hxcS13TT200w9VIp4kuG09', openId: openId || '', member: member || null, statusbarHeight: statusbarHeight || '0', @@ -80,10 +79,11 @@ }, // 清空登录缓存 empty(state) { uni.clearStorageSync() state.token = '' state.openId = '' state.userInfo = {} uni.removeStorageSync('userInfo') uni.removeStorageSync('token') state.driverInfo = {} } }, actions: {