File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
lowcoder/src/pages/userAuth Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " lowcoder-sdk" ,
3
- "version" : " 2.1.7 " ,
3
+ "version" : " 2.1.8 " ,
4
4
"type" : " module" ,
5
5
"files" : [
6
6
" src" ,
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ export function authRespValidate(
78
78
onAuthSuccess ?: ( ) => void
79
79
) {
80
80
let replaceUrl = redirectUrl || BASE_URL ;
81
+ const baseUrl = `${ window . location . protocol } //${ window . location . host } ` ;
81
82
if ( infoCompleteCheck ) {
82
83
// need complete info
83
84
replaceUrl = redirectUrl
@@ -86,7 +87,7 @@ export function authRespValidate(
86
87
}
87
88
if ( doValidResponse ( resp ) ) {
88
89
onAuthSuccess ?.( ) ;
89
- history . replace ( replaceUrl ) ;
90
+ history . replace ( replaceUrl . replace ( baseUrl , '' ) ) ;
90
91
} else if (
91
92
resp . data . code === SERVER_ERROR_CODES . EXCEED_MAX_USER_ORG_COUNT ||
92
93
resp . data . code === SERVER_ERROR_CODES . ALREADY_IN_ORGANIZATION
You can’t perform that action at this time.
0 commit comments