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("当前浏览器内核并非支付宝或者微信");