var r=(c,n,t)=>new Promise((i,o)=>{var l=a=>{try{e(t.next(a))}catch(s){o(s)}},u=a=>{try{e(t.throw(a))}catch(s){o(s)}},e=a=>a.done?i(a.value):Promise.resolve(a.value).then(l,u);e((t=t.apply(c,n)).next())});import{g as d}from"./dict.CxtX6q28.js";import{av as f,aw as g}from"./index-CZJgrp0v.js";const D=(c,n=!0,t=!1,i="全部")=>{const o=f([]),l=u=>r(void 0,null,function*(){var a;const e=yield d({page:1,pageSize:1e3,dictTypeSign:c,name:u,isEnable:1});e.code===0&&(console.log({dictlist:e.data.listData,isAll:t}),o.value=(((a=e.data)==null?void 0:a.listData)||[]).map(s=>({label:s.name,value:s.dictId})),t&&(console.log("6666",i),o.value.unshift({label:i,value:"-1"})))});return g(()=>{n&&(console.log("???????"),l(""))}),{getDict:l,dictlist:o}};export{D as u};
