2 lines
51 KiB
JavaScript
2 lines
51 KiB
JavaScript
|
import{l as O}from"./lodash-11751b8b.js";import{d as F,c as $}from"./pinia-22d008e7.js";import{l as w}from"./@vueuse-409d7ed5.js";import{N as P}from"./nprogress-e9cc33fd.js";import{c as U,a as H}from"./vue-router-e03c3082.js";/* empty css *//* empty css *//* empty css */import"./vue-20eed888.js";import{y as B}from"./y9plugin-sso-6f4b3ca3.js";import{u as j,c as K}from"./vue-i18n-d6e8419a.js";import{w as b}from"./y9plugin-watermark-e18d3181.js";import{d as J,r as A,k,w as L,f as Y,Y as q,I as G,ai as Q,b as X,o as Z,au as ee}from"./@vue-e95c845e.js";import{_ as te,i as re,y as ne,a as oe}from"./y9plugin-components-412bad23.js";import"./axios-db0ed51e.js";import"./@intlify-d4a3a758.js";import"./element-plus-53a783a7.js";import"./lodash-es-2e98bc53.js";import"./@element-plus-57b52633.js";import"./@popperjs-c75af06c.js";import"./@ctrl-f8748455.js";import"./dayjs-e13f206c.js";import"./async-validator-20f92749.js";import"./memoize-one-297ddbcb.js";import"./normalize-wheel-es-ed76fb12.js";import"./@floating-ui-606f2ab9.js";import"./v-viewer-decd5d79.js";import"./viewerjs-c43574b2.js";import"./vxe-table-3ccf2bcd.js";import"./xe-utils-90392958.js";import"./dom-zindex-d72a3c32.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function o(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();const ie="modulepreload",ae=function(e){return"/interface/"+e},x={},l=function(t,n,o){if(!n||n.length===0)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map(i=>{if(i=ae(i),i in x)return;x[i]=!0;const s=i.endsWith(".css"),h=s?'[rel="stylesheet"]':"";if(!!o)for(let m=r.length-1;m>=0;m--){const a=r[m];if(a.href===i&&(!s||a.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${h}`))return;const p=document.createElement("link");if(p.rel=s?"stylesheet":ie,s||(p.as="script",p.crossOrigin=""),p.href=i,document.head.appendChild(p),s)return new Promise((m,a)=>{p.addEventListener("load",m),p.addEventListener("error",()=>a(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>t()).catch(i=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i})};const se=F("routerStore",{state:()=>({PermissionRoutes:[],tabs:[],activeRoute:"/index"}),getters:{getPermissionRoutes:e=>e.PermissionRoutes,getTabs:e=>e.tabs,getActiveRoute:e=>e.activeRoute},actions:{addTab(e){this.activeRoute=e.path;function t(n){return n.path===e.path}this.tabs.some(t)||this.tabs.push(e)},removeTab(e,t){t==="top"&&e!=="首页"&&(this.tabs=O.remove(this.tabs,n=>n.path!==e)),t!=="top"&&(this.tabs=O.remove(this.tabs,n=>n.path!==e))}}});function le(e,t){return t.meta&&t.meta.roles?e.some(n=>t.meta.roles.includes(n)):!0}function N(e,t){const n=[];return e.forEach(o=>{const r={...o};le(t,r)&&(r.children&&(r.children=N(r.children,t)),n.push(r))}),n}function ce(e=["systemAdmin"]){const t=se(),o=N(Ee,e);return t.$patch({PermissionRoutes:o}),o}async function ue(e=["systemAdmin"]){const t=ce(e);return t.length!==0?(await t.map(n=>{y.addRoute(n)}),t):!1}const z=()=>/Android|webOS| iPhone | iPad | iPod |BlackBerry|opera mini|opera mobile|appleWebkit.*mobile|mobile/i.test(navigator.userAgent);function u(e,t){switch(e){case"large":return Math.floor(t*1.3);case"small":return Math.floor(t*.9)>12?Math.floor(t*.9):12;case"default":case"medium":return Math.floor(t*1)}}const S=F("settingStore",{state:()=>({webName:"数字底座",logoSvgName:"",web
|