mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-04 23:18:44 +08:00
fix encodeURIComponent
This commit is contained in:
@@ -307,7 +307,7 @@ const dropdownItems = ref([
|
|||||||
function addUrlQuery(url: string, name: string, value: any) {
|
function addUrlQuery(url: string, name: string, value: any) {
|
||||||
if (!url || !name || !value) return url
|
if (!url || !name || !value) return url
|
||||||
const separator = url.includes("?") ? "&" : "?"
|
const separator = url.includes("?") ? "&" : "?"
|
||||||
return url + separator + name + "=" + value
|
return url + separator + name + "=" + encodeURIComponent(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重载页面
|
// 重载页面
|
||||||
|
|||||||
Reference in New Issue
Block a user