From e63c743b40c4a69137be94659e6aece21bdf4a79 Mon Sep 17 00:00:00 2001 From: admin <417727563@qq.com> Date: Mon, 19 May 2025 18:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE0519?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- src/main.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.production b/.env.production index 6204d3d..32fb2d8 100644 --- a/.env.production +++ b/.env.production @@ -3,5 +3,5 @@ NODE_ENV = 'development' VITE_APP_TITLE = '高赛通单项目' VITE_APP_BASE_API = http://115.190.99.211:18086/jeecg-boot # VITE_APP_BASE_API = 'http://127.0.0.1:8080' -VITE_APP_PC_URL = http://localhost:18085/jeecg-boot -VITE_APP_MOBILE_URL = http://localhost:18085/jeecg-boot \ No newline at end of file +VITE_APP_PC_URL = http://115.190.99.211:803/#/home +VITE_APP_MOBILE_URL = http://115.190.99.211:8030 \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index cbd63a1..9ad69e6 100644 --- a/src/main.ts +++ b/src/main.ts @@ -54,9 +54,9 @@ const ua = navigator.userAgent.toLowerCase() const isMobile = /iphone|android|ipad|mobile/.test(ua) if (isMobile) { console.log('手机端') - // location.href = import.meta.env.VITE_APP_MOBILE_URL + location.href = import.meta.env.VITE_APP_MOBILE_URL } else if (!isMobile) { console.log('电脑端') - // location.href = import.meta.env.VITE_APP_PC_URL + location.href = import.meta.env.VITE_APP_PC_URL } \ No newline at end of file