From 0ba42e2a2040fc132fb0eb02b519fc87ac584da0 Mon Sep 17 00:00:00 2001 From: jsasg <735273025@qq.com> Date: Thu, 26 Jun 2025 16:04:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B7=B3=E8=BD=ACmtpl=E6=97=B6=E4=BC=9A?= =?UTF-8?q?=E5=8E=BB=E6=8E=89=E6=AD=A3=E5=B8=B8=E5=8F=82=E6=95=B0=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=97=A0=E6=95=B0=E6=8D=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/pc/public/base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/index/view/pc/public/base.html b/app/index/view/pc/public/base.html index ad5e3540..2d3862f4 100644 --- a/app/index/view/pc/public/base.html +++ b/app/index/view/pc/public/base.html @@ -68,7 +68,12 @@ // }) $(window).ready(function () { 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; + } } })