2 lines
1.6 KiB
JavaScript
2 lines
1.6 KiB
JavaScript
import{_ as b,b as N,r as t,t as S,v as k,g as I,o as x,c as C,k as y,x as B,f as E,u as M,h as l,a as T}from"./index.42ab3fdc.js";import{d as R}from"./jsencrypt.4421f12f.js";const O={class:"login"},U={class:"zr"},j={__name:"Transitional",setup(q){T();const u=N(),m=M();let f=t("\u52A0\u8F7D\u4E2D\uFF0C\u8BF7\u7A0D\u4FAF....."),o=t({ticket:""});S(()=>{g()});function g(a){k();var s=document.location.href,n=new Object,c=s.indexOf("?");if(c!=-1){var h=s.substr(c+1);let e=h.split("&");for(var d=0;d<e.length;d++)n[e[d].split("=")[0]]=e[d].split("=")[1]}o.value.ticket=n.ticket,u.login(o.value).then(e=>{e.data.deptCode=="-1"?(window.localStorage.setItem("divisions","370211"),window.localStorage.setItem("deptName","\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A"),window.localStorage.setItem("userName",e.data.userName)):(window.localStorage.setItem("divisions",e.data.deptCode),window.localStorage.setItem("deptName",e.data.deptCode.length==6?"\u9752\u5C9B\u897F\u6D77\u5CB8\u65B0\u533A":e.data.deptName),window.localStorage.setItem("userName",e.data.userName)),m.push({path:_.value||"/"})}).catch(()=>{v.value=!1,r.value&&i()})}const p=t(""),v=t(!1),r=t(!0);t(!1);const _=t(void 0);function i(){I().then(a=>{r.value=a.captchaEnabled===void 0?!0:a.captchaEnabled,r.value&&(p.value="data:image/gif;base64,"+a.img,o.value.uuid=a.uuid)})}function w(){const a=l.get("username"),s=l.get("password"),n=l.get("rememberMe");o.value={username:a===void 0?o.value.username:a,password:s===void 0?o.value.password:R(s),rememberMe:n===void 0?!1:Boolean(n)}}return i(),w(),(a,s)=>(x(),C("div",O,[y("div",U,B(E(f)),1)]))}},F=b(j,[["__scopeId","data-v-cf2856b6"]]);export{F as default};
|