From 72a8508bf2652f33cfa67591fadc5b07ee5a4d0c Mon Sep 17 00:00:00 2001 From: JayChou Date: Fri, 16 May 2025 15:58:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E8=AE=BF=E9=97=AE=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E9=87=8D=E5=AE=9A=E5=90=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.ts | 8 +++----- src/styles/index.scss | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/main.ts b/src/main.ts index 0cefb63..1c1e135 100644 --- a/src/main.ts +++ b/src/main.ts @@ -51,14 +51,12 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) { const useThemeStore = themeStore() useThemeStore.initTheme() const ua = navigator.userAgent.toLowerCase() - -// console.log(ua,'ua'); - const isMobile = /iphone|android|ipad|mobile/.test(ua) - if (isMobile) { console.log('手机端') - + // location.href = import.meta.env.VITE_APP_MOBILE_URL } else if (!isMobile) { console.log('电脑端') + // location.href = import.meta.env.VITE_APP_PC_URL + } diff --git a/src/styles/index.scss b/src/styles/index.scss index 9b4f157..956d436 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -9,8 +9,8 @@ --el-color-primary: #0BD7C6; } .container-1420{ - width: 375px; - margin: 0 auto; + // width: 375px; + // margin: 0 auto; // background-color: #c2acac; } .container-100{