优化token失效重新登录

This commit is contained in:
gaoxs
2020-06-03 20:12:00 +08:00
parent d7e0875381
commit 8267cbc18e
6 changed files with 80 additions and 77 deletions

View File

@ -297,6 +297,7 @@ export default {
that.MyMenus = res.data.routine_my_menus;
})
.catch(error => {
uni.hideLoading();
console.log(error);
});
},
@ -342,7 +343,7 @@ export default {
if (this.$store.getters.token) {
//
uni.showLoading({
title: "绑定中"
title: "加载中"
});
this.$store.dispatch("getUser", true);
this.MenuUser();