From fd428cd848880805232355e6f06965a3c36d4c38 Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Fri, 21 Jun 2024 15:42:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=87=8D=E5=AE=9A?= =?UTF-8?q?=E5=90=91url?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/card-info/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/card-info/index.vue b/src/views/card-info/index.vue index 73f85a2..9a4e321 100644 --- a/src/views/card-info/index.vue +++ b/src/views/card-info/index.vue @@ -184,7 +184,7 @@ export default { }, 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 redUrl = encodeURIComponent(`${commonUrl}/h5-frontendweb/#/cardInfo?imei=${params.imei}&iccid=${params.iccid}`); let url = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${AppId}&redirect_uri=${redUrl}&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect`; window.location.href = url;