This commit is contained in:
lcw
2025-12-05 21:36:34 +08:00
parent 64ab9fc44c
commit b39387c4ed
97 changed files with 3342 additions and 298 deletions

View File

@ -0,0 +1 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dd6ad"],{"80fe":function(e,t,o){"use strict";o.r(t);o("d9e2");var s=o("7a23"),n=o("5502"),i=(o("f3e4"),o("5d2d")),r=o("92c2"),c=o("986e"),d=o("5f87"),u={__name:"zeroTrust_login",setup(e){Object(s["ref"])(!1),Object(s["ref"])([]);const t=Object(n["b"])();console.log("路由6");const o=()=>{console.log("页面可见性变化"),fetch("https://pcs.lz.dsj.xz:9020/getSession",{method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"}).then(e=>{if(!e.ok)throw new Error("HTTP error! status: "+e.status);return e.json()}).then(e=>{let{placeId:t,userId:o}=e.rows[0];"amdin"==t&&(t=""),a(o,t)}).catch(e=>{console.error("获取会话信息失败:",e)})};function u(){const e=window.location.href,t=new URL(e);t.hostname.split(".")[0];o()}const a=(e,o)=>{Object(r["y"])({idCardNo:e,orgCode:o}).then(e=>{t.commit("user/setToken",e.jwtToken),t.commit("user/setDeptList",e.deptList),t.commit("user/setUserName",e.userName),t.commit("user/setMenuList",e.menuList),t.commit("user/setUserInfo",{token:e.jwtToken,permission:{buttonPermission:["removeTest","viewTest"],menus:e.menuCodeSet},menuList:e.menuList,deptList:e.deptList}),Object(i["d"])("USERNAME",e.userName),Object(i["d"])("SFRH",e.sfrh),Object(i["d"])("USERID",e.userId),Object(i["d"])("menusPermission",e.menuCodeSet),Object(i["d"])("idEntityCard",e.idEntityCard),Object(i["d"])("deptId",e.deptList),Object(d["b"])(),c["a"].emit("handleClick"),setTimeout(()=>{window.parent!==window.self?window.location.hash=window.location.href.split("#")[1]:(console.log("首页"),window.location.hash="/")},1e3)}).catch(e=>{console.error("免登失败:",e)})};return Object(s["onMounted"])(()=>{u()}),(e,t)=>null}};const a=u;t["default"]=a}}]);