import{u as s,l as a,$ as e,x as t,ci as i}from"./utils-lib.js?v=20260328163632";import{k as l,r as o,O as n,o as u,U as m,V as r,W as c,l as d,Y as p}from"./base-lib.js?v=20260328163632";import{s as g}from"./naive-ui.js?v=20260328163632";import"./__commonjsHelpers__.js?v=20260328163632";import"./env-lib.js?v=20260328163632";const v={class:"p-[16px]"},f=l({__name:"index",setup(l){const{getMenuData:f}=s(),h=o(!1),j=o({columns:[{title:a("菜单栏目"),key:"title"},{title:a("是否显示"),key:"show",align:"right",render:s=>["memuA","memuAsoft","memuAconfig","dologin"].includes(s.id)?a("不可操作"):n(g,{value:s.show,"onUpdate:value":[a=>s.show=a,a=>b(a,s)],size:"small"},null)}],data:[]}),[_]=e(j),b=async(s,a)=>{await t({loading:h,request:i({id:a.id,status:s}),message:!0,success:w})},w=async()=>{h.value=!0;const s=await f();j.value.data=s.data,h.value=!1};return u(w),(s,a)=>{const e=m("loading");return r(),c("div",v,[d(n(p(_),{class:"menu-set-table","max-height":360},null,512),[[e,p(h)]])])}}});export{f as default};
