mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-06 17:36:45 +08:00
解决冲突
This commit is contained in:
7
App.vue
7
App.vue
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user