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:
8
App.vue
8
App.vue
@@ -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() {
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user