fix: 跳转mtpl时会去掉正常参数导致无数据问题

This commit is contained in:
2025-06-26 16:04:56 +08:00
parent c73eeea98d
commit d5d731c2fc

View File

@@ -68,7 +68,12 @@
// }) // })
$(window).ready(function () { $(window).ready(function () {
if ($(window).width() < 1024) { if ($(window).width() < 1024) {
window.location.href = '?mtpl=1'; var locationURL = new URL(window.location.href);
var mtpl = locationURL.searchParams.get("mtpl");
if (mtpl == null) {
locationURL.searchParams.set("mtpl", "1");
window.location.href = locationURL.href;
}
} }
}) })
</script> </script>