mirror of
https://github.com/langgenius/dify.git
synced 2026-05-13 08:57:28 +08:00
Update web/app/account/oauth/authorize/page.tsx
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
f7ce52e212
commit
52a65fcd5a
@ -71,6 +71,8 @@ export default function OAuthAuthorize() {
|
|||||||
const isLoading = isOAuthLoading || isIsLoginLoading
|
const isLoading = isOAuthLoading || isIsLoginLoading
|
||||||
const isActionDisabled = !client_id || !redirect_uri || isError || isLoading || authorizing
|
const isActionDisabled = !client_id || !redirect_uri || isError || isLoading || authorizing
|
||||||
const onLoginSwitchClick = () => {
|
const onLoginSwitchClick = () => {
|
||||||
|
if (isLoading)
|
||||||
|
return
|
||||||
try {
|
try {
|
||||||
const returnUrl = buildReturnUrl('/account/oauth/authorize', `?client_id=${encodeURIComponent(client_id)}&redirect_uri=${encodeURIComponent(redirect_uri)}`)
|
const returnUrl = buildReturnUrl('/account/oauth/authorize', `?client_id=${encodeURIComponent(client_id)}&redirect_uri=${encodeURIComponent(redirect_uri)}`)
|
||||||
setPostLoginRedirect(returnUrl)
|
setPostLoginRedirect(returnUrl)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user