fix encodeURIComponent

This commit is contained in:
Allen
2024-06-03 11:04:17 +08:00
parent 6996d9bbe2
commit 222e0e5ff2

View File

@@ -307,7 +307,7 @@ const dropdownItems = ref([
function addUrlQuery(url: string, name: string, value: any) {
if (!url || !name || !value) return url
const separator = url.includes("?") ? "&" : "?"
return url + separator + name + "=" + value
return url + separator + name + "=" + encodeURIComponent(value)
}
// 重载页面