From b849d644ee47c79dc841a7669077da070d3adb1c Mon Sep 17 00:00:00 2001 From: hwj Date: Mon, 18 May 2026 11:54:34 +0800 Subject: [PATCH] =?UTF-8?q?config=EF=BC=9A=E6=B7=BB=E5=8A=A0=E6=89=93?= =?UTF-8?q?=E5=8C=85=E7=8E=AF=E5=A2=83=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 1 + .env.production | 1 + src/config.js | 5 +---- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .env.development create mode 100644 .env.production diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..2a130b7 --- /dev/null +++ b/.env.development @@ -0,0 +1 @@ +VITE_APP_BASE_URL=http://192.168.5.106:48081 diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..0e56b9d --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_APP_BASE_URL=https://besure.ngsk.tech:7001 diff --git a/src/config.js b/src/config.js index 8d5322b..c50b84b 100644 --- a/src/config.js +++ b/src/config.js @@ -1,9 +1,6 @@ // 应用全局配置 const config = { - // baseUrl: 'http://47.106.185.127:48080',127.0.0.1 - // baseUrl: 'https://besure.ngsk.tech:7001', - baseUrl: 'http://192.168.5.106:48081', - // baseUrl: '', + baseUrl: import.meta.env.VITE_APP_BASE_URL, // 应用信息 appInfo: { // 应用名称