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": {