提交一个测试的打印

This commit is contained in:
daihh
2023-08-02 16:37:05 +08:00
parent 8039b1271e
commit fda2d57033

View File

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