提交调整

This commit is contained in:
daihh
2022-12-05 14:57:12 +08:00
parent 5582acfb94
commit 071a1d7a73
3 changed files with 19 additions and 7 deletions

View File

@@ -27,7 +27,14 @@
plus.runtime.openURL(this.$config.loginPath) //这里默认使用外部浏览器打开而不是内部web-view组件打开
// #endif
// #ifdef H5
window.open(this.$config.loginPath)
console.log('this.$config.loginPath',this.$config.loginPath);
if(this.$config.loginPath.startsWith('http')){
let returnUrl=window.location.protocol+'//'+window.location.host+"/"+this.$config.context;
location.href=this.$config.loginPath+"?returnUrl="+encodeURIComponent(returnUrl+'/pages/login/loading');
}else{
location.href=this.$config.loginPath;
}
// #endif
}else{
apiLogin.boeLogin(token).then(rs=>{
@@ -55,9 +62,9 @@
}
}
}else{
uni.switchTab({
uni.switchTab({
url:'/pages/index/index'
})
})
}
});