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

@ -79,7 +79,7 @@
<div class="form-group mb-3">
<label for="user-agent">ua标识:</label>
<textarea class="form-control" id="user-agent" name="user-agent"
placeholder="用于获取订阅的http请求中的user-agent标识(可选)" rows="1"></textarea>
placeholder="用于获取订阅的http请求中的user-agent标识(可选)" rows="3"></textarea>
</div>
<!-- Refresh -->
<div class="form-check mb-3">

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")));
}