From 35bafb32357cc4c27fb9b90ddb0d1cc9dcf24332 Mon Sep 17 00:00:00 2001 From: dotdotdot <823150982@qq.com> Date: Sun, 23 Mar 2025 09:26:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20the=20error=20occurring=20when=20passing?= =?UTF-8?q?=20inputs=20on=20iOS=20devices=20and=20some=20=E2=80=A6=20(#165?= =?UTF-8?q?34)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/app/components/base/chat/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/app/components/base/chat/utils.ts b/web/app/components/base/chat/utils.ts index 729a50d996..030bb13991 100644 --- a/web/app/components/base/chat/utils.ts +++ b/web/app/components/base/chat/utils.ts @@ -13,8 +13,9 @@ async function decodeBase64AndDecompress(base64String: string) { async function getProcessedInputsFromUrlParams(): Promise> { const urlParams = new URLSearchParams(window.location.search) const inputs: Record = {} + const entriesArray = Array.from(urlParams.entries()) await Promise.all( - urlParams.entries().map(async ([key, value]) => { + entriesArray.map(async ([key, value]) => { inputs[key] = await decodeBase64AndDecompress(decodeURIComponent(value)) }), )