import{d as r,s,a as u,m as i,f as c,i as e,C as l,F as h}from"./index.7994470a.js";import{a,b as d}from"./index.91aa181a.js";var f=r({name:"home-layout-center",data(){return{status:!1}},mounted(){this.getUserInfo()},methods:{async getUserInfo(){try{const n=await a.post("/api-auth/smsLogin",{requestType:"form",data:{clientId:"student",clientSecret:"student",phone:s.orchestraInfo.phone,token:s.orchestraInfo.token,isSurportRegister:!0}}),{authentication:t}=n.data;u(t.token_type+" "+t.access_token),i({api:"setCache",content:{key:"h5-colexiu-token",value:t.token_type+" "+t.access_token}});const o=await a.get("/api-student/student/queryUserInfo",{initRequest:!0});c(o.data),this.$router.push("/home")}catch{this.status=!0}}},render(){return e(h,null,[this.status?e("div",{class:d.error},[e(l,{type:"notFond",classImgSize:"CERT",tips:"\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",buttonText:"\u91CD\u65B0\u52A0\u8F7D",plain:!0,onClick:this.getUserInfo},null)]):e("div",null,null)])}});export{f as default};
