<wxlogin
appid="wxdf5a59b3f6b819e0"
:state="state"
:redirect_uri="encodeURIComponent('https://www.dap-data.com/#/transfer')"
:scope="'snsapi_login'"
:response_type="'code'"
:href="xxxxx"
rel="external nofollow"
:theme="'black'">
</wxlogin>
我的这个二维码为什么扫了以后不跳转到我的地址?谁能帮助一下我,谢谢!!
你好,麻烦提供下完整的请求包
上完整代码
生成二维码:
<wxlogin
appid="wxdf5a59b3f6b819e0"
:state="state"
:redirect_uri='encodeURIComponent(redirect)'
:scope="'snsapi_login'"
:response_type="'code'"
:href="'data:text/css;base64,LmltcG93ZXJCb3ggLnRpdGxlIHsNCiAgZGlzcGxheTogbm9uZTsNCn0NCi5pbXBvd2VyQm94IC5zdGF0dXMuc3RhdHVzX2Jyb3dzZXIgew0KICBkaXNwbGF5OiBub25lOw0KfQ0KLmltcG93ZXJCb3ggLnFyY29kZSB7DQogIGJvcmRlcjogbm9uZTsNCiAgd2lkdGg6IDIwMHB4Ow0KICBoZWlnaHQ6IDIwMHB4Ow0KfQ0KLmltcG93ZXJCb3ggLnN0YXR1c3sNCiAgZGlzcGxheTogbm9uZQ0KfQ=='"
rel="external nofollow"
:theme="'black'">
</wxlogin>
回调方法:
redirect: {
type: String,
default() {
return "https://www.dap-data.com/#/transfer"
}
}
我的域名配置: