import{a as h}from"./comm.1703796278973.js";import{U as g,M as S,B as v}from"./baseMenu.1703796278973.js";import{d as y,e as M}from"./initHome.1703796278973.js";import{d as w,v as E,a3 as B,o as x,x as A,z as n,u as p,A as I,G as P,H as D}from"./vue.1703796278973.js";import{_ as N}from"./_plugin-vue_export-helper.1703796278973.js";import"./index.17037962789732.js";import"./index.17037962789733.js";import"./dayjs.min.1703796278973.js";import"./isArray.1703796278973.js";import"./editor.api.1703796278973.js";import"./preload-helper.1703796278973.js";import"./monaco.contribution.1703796278973.js";import"./consts.1703796278973.js";import"./system.1703796278973.js";import"./index.170379627897332.js";import"./index.170379627897315.js";import"./index.170379627897333.js";import"./index.170379627897334.js";import"./default.1703796278973.js";import"./permission.1703796278973.js";import"./404.1703796278973.js";const U=r=>(P("data-v-fc4ce80b"),r=r(),D(),r),b={class:"menu-style"},C={class:"menu-img"},R=["src"],T={class:"menu-info"},k=U(()=>n("div",null,"初始化后的菜单可在“菜单管理”页面进行维护管理",-1)),G=w({__name:"index",setup(r,{expose:_}){const c=E({count:0,current:void 0}),m=async()=>{const t=await y();if(t.status===200){const s=a(t.result.map(o=>JSON.parse(o).id),v),e=i(s);c.current=s,c.count=e}},a=(t,s)=>s.filter(e=>{var u;let o=!1;return e.showPage&&e.showPage.length&&(o=e.showPage.every(f=>t.includes(f))),e.children&&(e.children=a(t,e.children)),o||!!((u=e.children)!=null&&u.length)}),i=t=>t.reduce((s,e)=>{let o=1;return e.children&&(o=i(e.children)),s+o},0),d=async()=>new Promise(async t=>{(await M([...c.current,g,S])).status===200?t(!0):t(!1)}),{count:l}=B(c);return m(),_({updataMenu:d}),(t,s)=>(x(),A("div",b,[n("div",C,[n("img",{src:p(h)("/init-home/menu.png")},null,8,R)]),n("div",T,[n("b",null,"系统初始化"+I(p(l))+"个菜单",1),k])]))}});const re=N(G,[["__scopeId","data-v-fc4ce80b"]]);export{re as default};
