From a2cb4fc0ee49f0a29d1bef013f6477538091919d Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 5 Feb 2025 15:36:33 +0800 Subject: [PATCH] fix: bug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1051986 --user=王孝刚 【登录】登录页面选择 OAuth2 方式,没有反应 https://www.tapd.cn/57709429/s/1650890 --- ui/src/views/login/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/views/login/index.vue b/ui/src/views/login/index.vue index dd509ebfe..2b96e80ff 100644 --- a/ui/src/views/login/index.vue +++ b/ui/src/views/login/index.vue @@ -179,7 +179,7 @@ function redirectAuth(authType: string) { if (authType === 'OIDC') { url = `${config.authEndpoint}?client_id=${config.clientId}&redirect_uri=${redirectUrl}&response_type=code&scope=openid+profile+email` } - if (authType === 'OAUTH2') { + if (authType === 'OAuth2') { url = `${config.authEndpoint}?client_id=${config.clientId}&response_type=code` + `&redirect_uri=${redirectUrl}&state=${res.data.id}`