解决冲突

This commit is contained in:
yujicun
2023-08-02 16:41:12 +08:00

View File

@@ -23,7 +23,12 @@
//登录页面不需要,此页面用于本地测试
//console.log(location.href,'location.href');
var href=location.href;
if(href.indexOf('/pages/login/login')==-1){
//不包含登录页和加载页
if(href.indexOf('/pages/login/login')==-1 && href.indexOf('/pages/login/loading')==-1){
console.log('href='+href)
//先做登录校验
//每次加载增加一次对token的验证直接调用用户中心的接口,如果token不对这里会直接返回登录
//apiUserbasic.getUserInfo();
this.$store.dispatch('GetUserInfo');
}