From ba86ebda9d654aa0ff446d45ce4cc1c1b387af60 Mon Sep 17 00:00:00 2001 From: Kobi Date: Fri, 28 Jul 2023 14:53:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20fix:=20encode?= =?UTF-8?q?URIcomponent?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/core/func/alias.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fineui/src/core/func/alias.js b/packages/fineui/src/core/func/alias.js index c2ddbb28f..fc0eaa772 100644 --- a/packages/fineui/src/core/func/alias.js +++ b/packages/fineui/src/core/func/alias.js @@ -637,7 +637,7 @@ export const getEncodeURL = function(urlTemplate, param) { export const encodeURIComponent = function(url) { const specialCharsMap = getSpecialCharsMap(); - url = url || ""; + url = url ?? ""; url = replaceAll(`${url}`, keys(specialCharsMap || []).join("|"), str => { switch (str) { case "\\":