From 663d8f06fb86f64bde65ef3b19124e9bcbffdedc Mon Sep 17 00:00:00 2001 From: lifizer <913626195@qq.com> Date: Fri, 24 Jul 2026 16:55:13 +0800 Subject: [PATCH] =?UTF-8?q?Conf:=E5=A2=9E=E5=8A=A0Fix=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 8 ++++++++ package.json | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/config/index.js b/config/index.js index f386c48..c6467b1 100644 --- a/config/index.js +++ b/config/index.js @@ -10,6 +10,14 @@ if (NODE_ENV === 'development' || NODE_ENV === 'test') { enableDebug: false }) } +if (NODE_ENV === 'fix') { + BASE_URL = 'https://shop-pre.xdd618.com/api' + SERVICE_URL = 'https://service-pre.xdd618.com/api' + SERVICE_WS_URL = 'wss://service-pre.xdd618.com/ws' + wx.setEnableDebug({ + enableDebug: false + }) +} if (NODE_ENV === 'prod') { BASE_URL = 'https://wxapp.xdd618.com/api' SERVICE_URL = 'https://service.xdd618.com/api' diff --git a/package.json b/package.json index 858a590..d8db073 100644 --- a/package.json +++ b/package.json @@ -133,6 +133,17 @@ "CUSTOM-CONST": true } }, + "mp-weixin-fix": { + "title": "微信小程序(Fix环境)", + "env": { + "UNI_PLATFORM": "mp-weixin", + "VUE_APP_ENV": "fix", + "UNI_OUTPUT_DIR": "dist" + }, + "define": { + "CUSTOM-CONST": true + } + }, "mp-weixin": { "title": "微信小程序(生产环境)", "env": {