|
@@ -57,7 +57,8 @@ export default { |
|
|
console.log("微信"); |
|
|
console.log("微信"); |
|
|
let url = window.location.href.split("?code=")[1]; |
|
|
let url = window.location.href.split("?code=")[1]; |
|
|
console.log("获取授权code的url", url); |
|
|
console.log("获取授权code的url", url); |
|
|
if ( |
|
|
|
|
|
|
|
|
this.getWxCode(); |
|
|
|
|
|
/* if ( |
|
|
isNotNull(url) || |
|
|
isNotNull(url) || |
|
|
window.location.href.indexOf("code") > -1 |
|
|
window.location.href.indexOf("code") > -1 |
|
|
) { |
|
|
) { |
|
@@ -69,7 +70,7 @@ export default { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
this.getWxCode(); |
|
|
this.getWxCode(); |
|
|
} |
|
|
|
|
|
|
|
|
} */ |
|
|
} else { |
|
|
} else { |
|
|
this.getWxCode(); |
|
|
this.getWxCode(); |
|
|
console.log("当前浏览器内核并非支付宝或者微信"); |
|
|
console.log("当前浏览器内核并非支付宝或者微信"); |
|
|