multiStoreAdmin/build/store/assets/useDictOptions.a4bc9431.js

2 lines
412 B
JavaScript
Raw Normal View History

2024-10-12 19:40:17 +08:00
import"./index.5ab034a5.js";import{$ as p,t as f}from"./@vue.340249d8.js";function d(a){const s=p({}),e=Object.keys(a),i=e.map(o=>{const t=a[o];return s[o]=[],()=>t.api(f(t.params)||{})}),r=async()=>{(await Promise.allSettled(i.map(t=>t()))).forEach((t,u)=>{const n=e[u];if(t.status=="fulfilled"){const{transformData:c}=a[n],l=c?c(t.value):t.value;s[n]=l}})};return r(),{optionsData:s,refresh:r}}export{d as u};