@@ -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; | |||