From 888d3cb5baf2bc4051bdd61447eafa8a35fb59fa Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Fri, 26 Sep 2025 01:34:26 +0800 Subject: [PATCH] :bug: Fix authorize redirect --- app/pages/auth/authorize.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/pages/auth/authorize.vue b/app/pages/auth/authorize.vue index 2495c1d..38f7dcd 100644 --- a/app/pages/auth/authorize.vue +++ b/app/pages/auth/authorize.vue @@ -157,7 +157,7 @@ function checkIfNewApp() { async function handleAuthorize() { isAuthorizing.value = true try { - const data = await api<{ redirect_uri?: string }>( + const data = await api<{ redirectUri?: string }>( "/id/auth/open/authorize", { method: "POST", @@ -165,8 +165,8 @@ async function handleAuthorize() { } ) - if (data.redirect_uri) { - window.location.href = data.redirect_uri + if (data.redirectUri) { + window.location.href = data.redirectUri } } catch (err: any) { error.value = err.message || "An error occurred during authorization"