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.4 KiB
2 lines
1.4 KiB
var _=(l,e,o)=>new Promise((r,c)=>{var p=a=>{try{n(o.next(a))}catch(t){c(t)}},i=a=>{try{n(o.throw(a))}catch(t){c(t)}},n=a=>a.done?r(a.value):Promise.resolve(a.value).then(p,i);n((o=o.apply(l,e)).next())});import{d as f,ea as g,r as d,cb as v,n as S,o as u,g as m,b as k,w,t as b,i as x,u as y,bo as D,$ as M,Y as T,aT as B}from"./index-f4658ae7.js";import{a as C}from"./function-call-d3c31425.js";import"./mount-component-62c39ff8.js";import"./index-f3701452.js";import"./Toast-3c5f40d9.js";import"./index-1e934f0e.js";const O={class:"example"},A={key:0,class:"ant-tag-red"},I=f({__name:"MobileSSO",setup(l){const e=g(window.location.href),o=d(e==null?void 0:e.ticket),r=d(e==null?void 0:e.DoWhat),c=v(),p=d(!0),i=d(""),n=S();return(()=>_(this,null,function*(){try{const t=new M("BP.NBPORT.CCMobileSSO");t.AddPara("Ticket",o.value),r.value!=null&&(t.AddPara("DoWhat",r.value),t.AddPara("DoParam",e==null?void 0:e.DoParam));let s=yield t.DoMethodReturnJson("getUserInfo");if(s.code==200){C({message:s.path,wordBreak:"break-word"});return}else{const h=s.param.split("&")[0].split("=")[1];n.setToken(h),c.replace(s.path+"?"+s.param);return}}catch(t){T.error(t)}}))(),(t,s)=>(u(),m("div",O,[k(y(D),{spinning:p.value,size:"large"},{default:w(()=>[i.value?(u(),m("div",A,b(i.value),1)):x("",!0)]),_:1},8,["spinning"])]))}});const q=B(I,[["__scopeId","data-v-8277c86d"]]);export{q as default};
|