From d0f43926352d91fabf46153990113bb87363db45 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Fri, 14 Aug 2026 17:35:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/js/api.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/common/js/api.js b/common/js/api.js index bb6a529..38048bb 100644 --- a/common/js/api.js +++ b/common/js/api.js @@ -1,9 +1,18 @@ // let baseUrl = 'http://192.168.66.219:8000' -let baseUrl = 'https://intp.xingtongworld.com' -// let baseUrl = 'http://ljclf.dgyq-water.com' +// let baseUrl = 'https://intp.xingtongworld.com' +// let baseUrl = 'http://ljclf.dgyq-water.com:8078' // let baseUrl = 'http://120.234.15.170:8078' // let baseUrl = 'http://invoice.com' +let baseUrl = '' + +if (process.env.NODE_ENV === 'development') { + // 开发环境:使用本地测试地址 + baseUrl = 'https://intp.xingtongworld.com' +} else { + // 生产环境(打包后):使用相对路径(同域) + baseUrl = '' +} let API = { baseUrl: baseUrl,