对登录控制验证进行整理

This commit is contained in:
daihh
2023-03-01 19:25:50 +08:00
parent 8d2a270fa7
commit b874ef5307
9 changed files with 180 additions and 114 deletions

View File

@@ -20,7 +20,13 @@
});
//获取或加载一次用户信息
//console.log('App Launch');
this.$store.dispatch('GetUserInfo');
//登录页面不需要,此页面用于本地测试
//console.log(location.href,'location.href');
var href=location.href;
if(href.indexOf('/pages/login/login')==-1){
this.$store.dispatch('GetUserInfo');
}
},
mounted() {
},