微信实现授权登录的二维码
2019-07-24 本文已影响0人
小睿同学
mounted() {
history.pushState(null, null, document.URL);
window.addEventListener("popstate", function() {
history.pushState(null, null, document.URL);
});
let server = " ";//服务器的地址
let local = "http://localhost:8080";
let using = server;
var obj = new WxLogin({
self_redirect: false,
id: "login_container",
appid: " ",
scope: "snsapi_login",
redirect_uri: encodeURI(using),
state: "123",
style: "black"
});
},