样式修改

This commit is contained in:
liu
2026-08-31 20:48:11 +08:00
parent d0ce897a0f
commit f8cc40a609
179 changed files with 228 additions and 1199 deletions
-1
View File
@@ -1 +0,0 @@
import{i as e,n as t,r as n,t as r}from"./middleware-Ctqt9WwX.js";import{t as i}from"./request--UCyt0wo.js";function a(){return i({url:`/system/dict/list/all`,method:`get`})}var o={dictMap:{}},s=(e,t)=>({initDict:async()=>{try{let{data:t}=await a(),n={};t.data&&t.data.forEach(e=>{e.code&&e.dict_items&&(n[e.code]=e.dict_items)}),e({dictMap:n})}catch(e){console.error(`Failed to load dict data:`,e)}},getDictItem:(e,n)=>(t().dictMap[e]||[]).find(e=>String(e.value)===String(n))||null,getOptions:e=>(t().dictMap[e]||[]).map(e=>({label:e.label||``,value:e.value||``}))}),c=e()(t(n((...e)=>({...o,...s(...e)}),{name:`dict-storage`,storage:r(()=>localStorage)}),{name:`XinAdmin-Dict`}));export{c as t};