From d40f2e7d94fed3275666035fb2b41f638225e063 Mon Sep 17 00:00:00 2001 From: NFish Date: Fri, 25 Apr 2025 14:09:38 +0800 Subject: [PATCH] fix: web app login show undefined error message (#18757) --- web/service/base.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/service/base.ts b/web/service/base.ts index 90da2bd188..68dee7dce6 100644 --- a/web/service/base.ts +++ b/web/service/base.ts @@ -123,7 +123,11 @@ function unicodeToChar(text: string) { } function requiredWebSSOLogin(message?: string) { - globalThis.location.href = `/webapp-signin?redirect_url=${globalThis.location.pathname}&message=${message}` + const params = new URLSearchParams() + params.append('redirect_url', globalThis.location.pathname) + if (message) + params.append('message', message) + globalThis.location.href = `/webapp-signin?${params.toString()}}` } function getAccessToken(isPublicAPI?: boolean) {