refactor(auth): 保留 codeLogin 和 passwordLogin 页跳转URL的 tenantId 参数

This commit is contained in:
fhysy 2025-04-02 11:20:40 +08:00
parent 3e996b0b95
commit 6ae8c93a61
2 changed files with 18 additions and 6 deletions

View File

@ -316,9 +316,15 @@
}, },
// //
goPasswordLogin(){ goPasswordLogin(){
uni.reLaunch({ if(this.query.tenantId){
url: './passwordLogin' uni.reLaunch({
}); url: './passwordLogin?tenantId='+this.query.tenantId
});
}else{
uni.reLaunch({
url: './passwordLogin'
});
}
}, },
goPolicy() { goPolicy() {
uni.navigateTo({ uni.navigateTo({

View File

@ -331,9 +331,15 @@
}, },
// //
goPhoneLogin(){ goPhoneLogin(){
uni.reLaunch({ if(this.query.tenantId){
url: './codeLogin' uni.reLaunch({
}); url: './codeLogin?tenantId='+this.query.tenantId
});
}else{
uni.reLaunch({
url: './codeLogin'
});
}
}, },
goPolicy() { goPolicy() {
uni.navigateTo({ uni.navigateTo({