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
1.1 KiB
2 lines
1.1 KiB
var d=(_,a,o)=>new Promise((c,i)=>{var s=e=>{try{t(o.next(e))}catch(r){i(r)}},n=e=>{try{t(o.throw(e))}catch(r){i(r)}},t=e=>e.done?c(e.value):Promise.resolve(e.value).then(s,n);t((o=o.apply(_,a)).next())});import{d as w,r as v,n as C,cb as g,by as u,$ as h}from"./index-f4658ae7.js";const M=w({__name:"WeChatEnterprise",setup(_){const a=v(),o=C(),c=g();return(()=>d(this,null,function*(){var s=window.location.href,n=s.split("?")[1],t=new URLSearchParams("?"+n),e=t.get("code"),r=t.get("state").replace("#/WeChatEnterprise","");if(r.includes(",")){alert(r);var l=r.split(",");u()?a.value="/CCMobile/MyFlow?WorkID="+l[1].replace("WorkID_","")+"&FlowNo="+l[2].replace("FK_Flow_","")+"&FK_Flow="+l[2].replace("FK_Flow_",""):a.value="/WF/MyFlow?WorkID="+l[1].replace("WorkID_","")+"&FlowNo="+l[2].replace("FK_Flow_","")+"&FK_Flow="+l[2].replace("FK_Flow_","")}else u()?a.value="/CCMobilePortal/Home":a.value="/WF/GL/TodoList";const p=new h("BP.WF.HttpHandler.CCMobile");p.AddPara("dcode",e),p.AddPara("state",r);const F=yield p.DoMethodReturnString("Auto_Login");o.setToken(F),c.push(a.value)}))(),(s,n)=>null}});export{M as default};
|