From 4bf9a58fff20085dc70928987a098ee874339aea Mon Sep 17 00:00:00 2001 From: fuxiaochun Date: Thu, 17 Aug 2023 21:41:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=BE=E5=A4=87=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.js b/src/main.js index 80039a0..8b1e32b 100644 --- a/src/main.js +++ b/src/main.js @@ -22,8 +22,7 @@ function platCheck() { if (!isMobileDevice) { let _href = window.location.href; let _origin = window.location.origin; - _href.replace(_origin, import.meta.env.VITE_PC_HOST) - window.location.href = _href; + window.location.href = _href.replace(_origin, import.meta.env.VITE_PC_HOST); } } platCheck();