From fe06807beb0e480562e5062a8bc49eaaa6808099 Mon Sep 17 00:00:00 2001 From: ielgnaw Date: Sat, 11 May 2024 17:16:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20window.open=20=E7=99=BB=E5=BD=95=20(#26?= =?UTF-8?q?58)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/login_success.html | 2 +- frontend/src/api/index.js | 3 +- frontend/static/login_success.html | 91 ------------------------------ 3 files changed, 3 insertions(+), 93 deletions(-) delete mode 100644 frontend/static/login_success.html diff --git a/frontend/login_success.html b/frontend/login_success.html index e1bd9a65b..a286d7452 100644 --- a/frontend/login_success.html +++ b/frontend/login_success.html @@ -99,7 +99,7 @@

登录成功

// // console.warn('#TODO 实现页面跳转') // // } // }) - window.opener && window.opener.location.reload() + // window.opener && window.opener.location.reload() window.close() diff --git a/frontend/src/api/index.js b/frontend/src/api/index.js index 6cdffd264..0712dff78 100644 --- a/frontend/src/api/index.js +++ b/frontend/src/api/index.js @@ -214,7 +214,8 @@ function handleReject (error, config) { // nextError.message = error.response.data.message; // bus.$emit('show-login-modal', loginPlainUrl); // window.location = LOGIN_SERVICE_URL + '/?c_url=' + window.location.href - const loginCallbackURL = `${window.location.origin}/static/login_success.html?is_ajax=1`; + // const loginCallbackURL = `${window.location.origin}/static/login_success.html?is_ajax=1`; + const loginCallbackURL = `${window.origin + window.SITE_URL}login_success/?is_ajax=1`; const siteLoginUrl = window.LOGIN_SERVICE_URL || ''; if (!siteLoginUrl) { console.error('Login URL not configured!'); diff --git a/frontend/static/login_success.html b/frontend/static/login_success.html deleted file mode 100644 index 454ac3726..000000000 --- a/frontend/static/login_success.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - -
- -
- - -