From 3b00e484f49be5ec233ba2e5ec12e9bb96813703 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Fri, 21 Jun 2024 15:12:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E6=8E=88=E6=9D=83=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package-home/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/package-home/index.vue b/src/views/package-home/index.vue index 61a6df5..ddd6a24 100644 --- a/src/views/package-home/index.vue +++ b/src/views/package-home/index.vue @@ -132,7 +132,7 @@ export default { // 获取微信code getWxCode() { let params = this.params; - let commonUrl = process.env.VUE_APP_BASE_API; + let commonUrl = process.env.NODE_ENV === "production" ? process.env.VUE_APP_BASE_API : 'https://id.gdssjl.com'; let isWhiteTitle = this.whiteTitleList.includes(this.currentIotTitle) > 0; let cardInfoBaseUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/cardInfo?imei=${params.imei}&iccid=${params.iccid}`); let toupBaseUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/${params.routerName}?imei=${params.imei}&iccid=${params.iccid}`);