import{ao as f,a1 as g,a2 as m,a3 as v,ax as _}from"./vue-vendor-CxLCUzY4.js";import{u as k,ab as y,K as S,_ as E}from"./index-Cy4uayzW.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";const I={name:"TokenLogin",setup(){const c=f();let a=g();const{createMessage:t,notification:s}=k(),{t:i}=S(),o=c.query;o||t.warning("参数无效");const d=o.loginToken;d||t.warning("token无效"),y().ThirdLogin({token:d,thirdType:"email",goHome:!1}).then(e=>{e&&e.userInfo?l(e):p(e)});function p(e){s.error({message:"登录失败",description:((e.response||{}).data||{}).message||e.message||"请求出现错误，请稍后再试",duration:4})}function l(e){let u=o.info;if(u){let n=JSON.parse(u),r="";n.isLowApp===1?r="/myapps/personalOffice/myTodo":r="/task/handle/"+n.taskId,a.replace({path:r,query:n}),s.success({message:i("sys.login.loginSuccessTitle"),description:`${i("sys.login.loginSuccessDesc")}: ${e.userInfo.realname}`,duration:3})}else s.error({message:"参数失效",description:"页面跳转参数丢失，请查看日志",duration:4})}}},T="/resource/img/logo.png",$={class:"app-loading"};function h(c,a,t,s,i,o){return m(),v("div",$,a[0]||(a[0]=[_('<div class="app-loading-wrap" data-v-ca7ef8e0><img src="'+T+'" class="app-loading-logo" alt="Logo" data-v-ca7ef8e0><div class="app-loading-dots" data-v-ca7ef8e0><span class="dot dot-spin" data-v-ca7ef8e0><i data-v-ca7ef8e0></i><i data-v-ca7ef8e0></i><i data-v-ca7ef8e0></i><i data-v-ca7ef8e0></i></span></div><div class="app-loading-title" data-v-ca7ef8e0>JeecgBoot 企业级低代码平台</div></div>',1)]))}const B=E(I,[["render",h],["__scopeId","data-v-ca7ef8e0"]]);export{B as default};
