- 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=" + settings.url + "%2fauthen&response_type=code&scope=snsapi_userinfo&state="+ path +"#wechat_redirect"
- }
|