Skip to content

Commit

Permalink
fix: 小窗登录问题url修复 (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
leafage-collb authored Jul 20, 2023
1 parent 50c7b0f commit 6b407a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dashboard-front/src/components/auth/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
showLoginModal (data) {
const callbackUrl = `${location.origin}/static/login_success.html?is_ajax=1`
const url = `${window.GLOBAL_CONFIG.LOGIN_URL}/plain?size=big&c_url=${callbackUrl}`
const loginUrl = window.GLOBAL_CONFIG.LOGIN_URL
const url = `${loginUrl.endsWith('/') ? loginUrl : `${loginUrl}/`}plain/?c_url=${callbackUrl}`
if (!url) {
console.warn('The response don\'t return login_url')
return
Expand Down

0 comments on commit 6b407a9

Please sign in to comment.