mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 10:56:47 +08:00
Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/mobile
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
mounted() {
|
||||
let token=getToken();
|
||||
let $this=this;
|
||||
console.log(token,'得到token');
|
||||
//console.log(token,'得到token');
|
||||
if(!token){
|
||||
console.log('未获得token,转向登录');
|
||||
//this.$router.push({ path: process.env.VUE_APP_LOGIN_URL })
|
||||
@@ -62,7 +62,7 @@
|
||||
}
|
||||
}else{
|
||||
console.log('跳转到首页');
|
||||
alert('跳转到首页')
|
||||
//alert('跳转到首页')
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
@@ -70,14 +70,14 @@
|
||||
|
||||
}).catch(error => {
|
||||
console.log('加载用户信息错误:',error);
|
||||
alert('加载用户信息错误')
|
||||
//alert('加载用户信息错误')
|
||||
uni.showModal({
|
||||
title:'错误',
|
||||
content:error
|
||||
})
|
||||
})
|
||||
}else{
|
||||
alert('加载用户错误')
|
||||
//alert('加载用户错误')
|
||||
console.log(rs.message+','+rs.error);
|
||||
//#ifdef APP-PLUS
|
||||
plus.runtime.openURL(this.$config.loginPath) //这里默认使用外部浏览器打开而不是内部web-view组件打开
|
||||
@@ -89,7 +89,7 @@
|
||||
}
|
||||
}).catch(err=>{
|
||||
//
|
||||
alert('请求超时')
|
||||
//alert('请求超时')
|
||||
uni.showToast({
|
||||
title:'请求超时'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user