fix:修复ua标识等两个前端未正常回显问题

This commit is contained in:
hz
2025-03-07 17:41:42 +08:00
parent cc0b73d7a4
commit 88d8653ab5
2 changed files with 12 additions and 1 deletions

View File

@@ -256,6 +256,17 @@ async function parseInputURL() {
);
}
if (params.has("userAgent")) {
document.getElementById("user-agent").value = decodeURIComponent(
params.get("userAgent")
);
}
if (params.has("ignoreCountryGroup")) {
document.getElementById("igcg").checked =
params.get("ignoreCountryGroup") === "true";
}
if (params.has("replace")) {
parseAndFillReplaceParams(decodeURIComponent(params.get("replace")));
}