|
|
@@ -78,12 +78,13 @@ export async function wxLoginFn(update) {
|
|
|
}
|
|
|
uni.setStorageSync('token', subRes.data.token)
|
|
|
store.commit('setLoginInfo', subRes.data.user)
|
|
|
+ //更新用户数据
|
|
|
+ //store.dispatch('setShopUser', userInfo)
|
|
|
|
|
|
//启动更新逻辑 shish 2020.5.18
|
|
|
if (subRes.data.update == 1) {
|
|
|
|
|
|
- //更新用户数据
|
|
|
- //store.dispatch('setShopUser', userInfo)
|
|
|
+
|
|
|
|
|
|
const updateManager = uni.getUpdateManager();
|
|
|
updateManager.onCheckForUpdate(function(res) {
|
|
|
@@ -124,12 +125,4 @@ export async function wxLoginFn(update) {
|
|
|
})
|
|
|
|
|
|
return dataInfo
|
|
|
-}
|
|
|
-
|
|
|
-// export default {
|
|
|
-// getSelfInfo,
|
|
|
-// getUser,
|
|
|
-// resetAllUser,
|
|
|
-// getRoleReal
|
|
|
-// }
|
|
|
-
|
|
|
+}
|