import{Ar as e,Rt as t}from"./index-o0-2k-vI.js";import{o as n}from"./VContainer-BbTGUkA2.js";import{t as r}from"./apiError-nzQ5DKV3.js";function i(){let i=e([]),a=e(!1),o=n();async function s(e){a.value=!0;try{i.value=(await t.getList(`/servers/`,{per_page:e?.perPage??200})).items}catch(e){i.value=[],o(r(e,`加载服务器列表失败`),`error`)}finally{a.value=!1}}return{servers:i,loading:a,loadServers:s}}export{i as t};