- import settings from "../../settings"
- export const getAuthen = () =>{
- const path = window.location.pathname === "/authen" ? "/" : window.location.pathname
- window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + settings.appId + "&redirect_uri=http%3a%2f%2fwww.onlyfido.top%2fauthen&response_type=code&scope=snsapi_userinfo&state="+ path +"#wechat_redirect"
- }
|