import{p as e,s as o,g as r,L as a,M as s,o as n,e as t,m as i}from"./index-520dfaee.js";const l={__name:"login",setup:l=>(e((async e=>{if(e.login_code){const{code:r}=await o.$platform.useProvider().login(e.login_code);1===r&&o.$store("user").getInfo()}e.bind_code&&await o.$platform.useProvider().bind(e.bind_code);let n=r("returnUrl");n?(a("returnUrl"),location.replace(n)):s({url:"/"})})),(e,o)=>{const r=i;return n(),t(r)})};export{l as default};
