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