From f9089af13a2ce7a8f0549698efda9f821ca02818 Mon Sep 17 00:00:00 2001 From: JayChou Date: Wed, 28 May 2025 17:57:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index a81a446..b219fd7 100644 --- a/src/main.ts +++ b/src/main.ts @@ -59,8 +59,8 @@ const pcHost = new URL(import.meta.env.VITE_APP_PC_URL).host if (isMobile && currentHost !== mobileHost) { console.log('手机端,跳转到移动站') - // location.href = import.meta.env.VITE_APP_MOBILE_URL + location.href = import.meta.env.VITE_APP_MOBILE_URL } else if (!isMobile && currentHost !== pcHost) { console.log('电脑端,跳转到 PC 站') - // location.href = import.meta.env.VITE_APP_PC_URL + location.href = import.meta.env.VITE_APP_PC_URL }