This commit is contained in:
luyuan 2020-12-15 14:19:51 +08:00
parent 228c366b8f
commit 23020a0512
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -20,12 +20,14 @@ export default defineComponent(({
setup(){
const code: any = useRoute().query.code;
console.log(code)
alert(code)
if(!code){
router.push("/")
return ;
}
accessToken(code, 1).then((res: any)=>{
console.log(res)
authLogin(res.uid, 2).then((res: any)=>{
authLogin(res.uid, 1).then((res: any)=>{
if(res.redirect == 1){
sessionStorage.setItem('mid',res.memberid);
router.push("/sign")