From 094ebe0aae5a220f547ae8388088d2a1b64d2fe9 Mon Sep 17 00:00:00 2001 From: liangjiami <2249412933@qq.com> Date: Thu, 26 Jun 2025 13:44:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/pc/public/base.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/index/view/pc/public/base.html b/app/index/view/pc/public/base.html index 1400c8ab..0571ebfe 100644 --- a/app/index/view/pc/public/base.html +++ b/app/index/view/pc/public/base.html @@ -61,17 +61,17 @@ } } - $(window).ready(function () { - const deviceType = detectDeviceByResolution(); - if (deviceType=='tablet') { - window.location.href = '?mtpl=1'; - } - }) // $(window).ready(function () { - // if ($(window).width() < 1024) { + // const deviceType = detectDeviceByResolution(); + // if (deviceType=='tablet') { // window.location.href = '?mtpl=1'; // } // }) + $(window).ready(function () { + if ($(window).width() < 1024) { + window.location.href = '?mtpl=1'; + } + })