import{n as c}from"./vue.adf17aba.js";async function u(s,t,n,o,r){try{r.value=!0;const e=await s(t);let a=e.data;return Array.isArray(a)||(a=[a]),o.value=e.total,n.value=a,{success:!0,data:a,code:e.code,msg:e.msg}}catch(e){return console.error("Error in useElTableData==> ",e),{success:!1,error:e}}finally{r.value=!1,await c(),window.dispatchEvent(new Event("resize"))}}export{u};
