From f673f11681ffc4767b61d197a01cb831ac7049fc Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Sat, 8 Apr 2023 21:24:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E8=8E=B7=E5=8F=96code?= =?UTF-8?q?=E7=9A=84=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/package-home/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/package-home/index.vue b/src/views/package-home/index.vue index e03a37e..6e23630 100644 --- a/src/views/package-home/index.vue +++ b/src/views/package-home/index.vue @@ -57,7 +57,8 @@ export default { console.log("微信"); let url = window.location.href.split("?code=")[1]; console.log("获取授权code的url", url); - if ( + this.getWxCode(); + /* if ( isNotNull(url) || window.location.href.indexOf("code") > -1 ) { @@ -69,7 +70,7 @@ export default { } } else { this.getWxCode(); - } + } */ } else { this.getWxCode(); console.log("当前浏览器内核并非支付宝或者微信");