Commit 01a35d04d9736808fccd105af1032eef5b755866
1 parent
4ff94ee3
授权方式修改
Showing
1 changed file
with
10 additions
and
10 deletions
src/components/plateNumber.vue
| ... | ... | @@ -315,16 +315,16 @@ export default { |
| 315 | 315 | |
| 316 | 316 | console.log(window.location) |
| 317 | 317 | console.log(this.$route.query) |
| 318 | - if (this.$utils.clientBrowser() == "微信") { | |
| 319 | - var appID = this.$utils.myVxAppId; | |
| 320 | - var code = this.getUrlParam('code'); | |
| 321 | - var local = window.location.href; | |
| 322 | - if (code == null || code === '') { | |
| 323 | - window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_base&state=1,0#wechat_redirect' | |
| 324 | - } else { | |
| 325 | - return code; | |
| 326 | - } | |
| 327 | - } | |
| 318 | + // if (this.$utils.clientBrowser() == "微信") { | |
| 319 | + // var appID = this.$utils.myVxAppId; | |
| 320 | + // var code = this.getUrlParam('code'); | |
| 321 | + // var local = window.location.href; | |
| 322 | + // if (code == null || code === '') { | |
| 323 | + // window.location.href = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid='+appID+'&redirect_uri='+encodeURIComponent(local)+'&response_type=code&scope=snsapi_base&state=1,0#wechat_redirect' | |
| 324 | + // } else { | |
| 325 | + // return code; | |
| 326 | + // } | |
| 327 | + // } | |
| 328 | 328 | |
| 329 | 329 | |
| 330 | 330 | let params = this.$route.query | ... | ... |