diff --git a/src/views/card-info/index.vue b/src/views/card-info/index.vue index 6c7c7db..a23c404 100644 --- a/src/views/card-info/index.vue +++ b/src/views/card-info/index.vue @@ -155,7 +155,7 @@ export default { if (params) { this.params = { ...params }; let url = window.location.href.split("?code=")[1]; - if (isNotNull(url) || window.location.href.indexOf("code") > -1) { + if (isNotNull(url) && window.location.href.indexOf("code") > -1 && this.isWeChat) { let timeStamp = new Date().getTime(); let code = url.split("&")[0]; this.code = code;