From 24afb5e21b3436015438cba52d214843437f3b3e Mon Sep 17 00:00:00 2001 From: haitaoo Date: Wed, 19 Apr 2023 18:25:34 +0800 Subject: [PATCH] feat: Add `enabled_original_user_system` to the login address logic --- ui/src/utils/userCenter.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/src/utils/userCenter.ts b/ui/src/utils/userCenter.ts index 7459f35d..02dce698 100644 --- a/ui/src/utils/userCenter.ts +++ b/ui/src/utils/userCenter.ts @@ -10,7 +10,11 @@ export const pullUcAgent = async () => { export const getLoginUrl = (uca?: UcAgent) => { let ret = RouteAlias.login; uca ||= userCenterStore.getState().agent; - if (uca?.enabled && uca?.agent_info?.login_redirect_url) { + if ( + uca?.enabled && + !uca.agent_info?.enabled_original_user_system && + uca.agent_info?.login_redirect_url + ) { ret = uca.agent_info.login_redirect_url; } return ret;