不能携带请求头!!!!!
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1bb91bb62646867c&redirect_uri=${encodeURIComponent('http://kucizs.natappfree.cc/#/user')}&response_type=code&scope=snsapi_base&state=123#wechat_redirect
这个直接cv官网即可,主要就是通过encodeURIComponent对url进行编码
请求成功会直接跳转到redirect_uri的回调地址
http://kucizs.natappfree.cc/?code=0314XhHa1GCz4G0lEiJa1RNeEC04XhHK&state=123#/user
这是跳转的地址,会携带之前设置的state参数,以及code