|
|
@ -637,7 +637,7 @@ export const getEncodeURL = function(urlTemplate, param) { |
|
|
|
|
|
|
|
|
|
|
|
export const encodeURIComponent = function(url) { |
|
|
|
export const encodeURIComponent = function(url) { |
|
|
|
const specialCharsMap = getSpecialCharsMap(); |
|
|
|
const specialCharsMap = getSpecialCharsMap(); |
|
|
|
url = url || ""; |
|
|
|
url = url ?? ""; |
|
|
|
url = replaceAll(`${url}`, keys(specialCharsMap || []).join("|"), str => { |
|
|
|
url = replaceAll(`${url}`, keys(specialCharsMap || []).join("|"), str => { |
|
|
|
switch (str) { |
|
|
|
switch (str) { |
|
|
|
case "\\": |
|
|
|
case "\\": |
|
|
|