提交修改

This commit is contained in:
daihh
2022-12-06 15:41:26 +08:00
parent 554a7931db
commit 341c40c79c
2 changed files with 5 additions and 3 deletions

View File

@@ -40,7 +40,8 @@ const formRequest=function(method,url,data){
// #endif
// #ifdef H5
//window.open(loginPath)
location.href=loginPath
let returnUrl=window.location.protocol+'//'+window.location.host+"/"+config.context;
location.href=config.loginPath+"?returnUrl="+encodeURIComponent(returnUrl+'/pages/login/loading');
// #endif
}else{
uni.redirectTo({
@@ -89,7 +90,8 @@ const jsonRequest=function(method,url,data){
// #endif
// #ifdef H5
//window.open(loginPath)
location.href=loginPath
let returnUrl=window.location.protocol+'//'+window.location.host+"/"+config.context;
location.href=config.loginPath+"?returnUrl="+encodeURIComponent(returnUrl+'/pages/login/loading');
// #endif
}else{
uni.redirectTo({