Skip to content

Commit

Permalink
feat: window.open 登录 (#2658)
Browse files Browse the repository at this point in the history
  • Loading branch information
ielgnaw authored May 11, 2024
1 parent e1a87c9 commit fe06807
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 93 deletions.
2 changes: 1 addition & 1 deletion frontend/login_success.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ <h1>登录成功</h1>
// // console.warn('#TODO 实现页面跳转')
// // }
// })
window.opener && window.opener.location.reload()
// window.opener && window.opener.location.reload()
window.close()
</script>
</html>
3 changes: 2 additions & 1 deletion frontend/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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!');
Expand Down
91 changes: 0 additions & 91 deletions frontend/static/login_success.html

This file was deleted.

0 comments on commit fe06807

Please sign in to comment.