You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.1 KiB

var _=(c,u,e)=>new Promise((o,n)=>{var s=r=>{try{t(e.next(r))}catch(i){n(i)}},a=r=>{try{t(e.throw(r))}catch(i){n(i)}},t=r=>r.done?o(r.value):Promise.resolve(r.value).then(s,a);t((e=e.apply(c,u)).next())});import{d as E,r as F,q as l,bl as w,n as h,P as p,a0 as f,o as d,a as m,w as L,j as G,g as k,t as b,i as C,u as g,bo as B,aT as S}from"./index-f4658ae7.js";const T={style:{width:"100vw",height:"100vh"}},A={key:0,class:"ant-tag-red"},v=E({__name:"FEForward",setup(c){const u=F(!1),e=l({hasError:!1,tips:""}),o=w(),n=h();return p(()=>_(this,null,function*(){const{VITE_GLOB_IS_THIRDPART_SYSTEM:s}=f();if(!s){e.hasError=!0,e.tips="\u6B64\u9875\u9762\u4EC5\u9650\u4E09\u65B9\u96C6\u6210\u8C03\u7528";return}const a=o.query.action,t=o.query.token;if(!a){e.hasError=!0,e.tips="\u672A\u6307\u5B9A\u9875\u9762\u884C\u4E3A";return}if(!t){e.hasError=!0,e.tips="\u672A\u63D0\u4F9B\u51ED\u8BC1";return}if(t){n.setToken(t);try{const r=yield n.fetchUserInfo();if((r==null?void 0:r.code)==500){e.hasError=!0,e.tips=(r==null?void 0:r.msg)||"\u83B7\u53D6\u7528\u6237\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u68C0\u67E5token";return}}catch(r){e.hasError=!0,e.tips=r.toString();return}}switch(a){case"GL_TodoList":window.location.href="/#/WF/GenerList?EnName=GL_Todolist";break;case"GL_Start":window.location.href="/#/WF/GenerList?EnName=GL_Start";break;case"GL_RecentStart":window.location.href="/#/WF/GenerList?EnName=GL_RecentStart";break;case"GL_RecentWork":window.location.href="/#/WF/GenerList?EnName=GL_RecentWork";break;case"GL_Running":window.location.href="/#/WF/GenerList?EnName=GL_Runing";break;case"GL_CC":window.location.href="/#/WF/GenerList?EnName=GL_CC";break;case"FrmTree":window.location.href="/#/WF/TreeEns?EnName=TreeEns_FrmSort2Frm";break;case"FlowTree":window.location.href="/#/WF/TreeEns?EnName=TreeEns_FlowSort2Flow";break;default:e.hasError=!0,e.tips=`\u672A\u652F\u6301\u884C\u4E3A: [${a}]`}})),(s,a)=>(d(),m(g(B),{spinning:u.value,size:"large",tip:"\u6B63\u5728\u52A0\u8F7D\uFF0C\u8BF7\u7A0D\u4FAF......"},{default:L(()=>[G("div",T,[e.hasError?(d(),k("div",A,b(e.tips),1)):C("",!0)])]),_:1},8,["spinning"]))}});const y=S(v,[["__scopeId","data-v-b53d2bba"]]);export{y as default};