fix: 跳转mtpl时会去掉正常参数导致无数据问题
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user