mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 09:26:45 +08:00
提交一个测试的打印
This commit is contained in:
3
App.vue
3
App.vue
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user