import{_ as a}from"./index119.js?v=1761009159";import{c as s,r as t,q as e,H as l,v as o,x as r,e as m,y as n,B as c,C as i,I as p,G as u}from"./base-lib.js?v=1761009159";import{aq as b}from"./config.js?v=1761009159";import{d}from"./useMethod2.js?v=1761009159";import{aj as y,M as _}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const f={class:"p-2rem"},v=s({__name:"log-back",setup(s){const v=t("backup"),{BtTabs:j}=y({type:"card",value:v,options:[{label:"备份日志",name:"backup",lazy:!0},{label:"还原日志",name:"restore",lazy:!0}]}),g=t("当前日志为空"),h=t(!1),k=async a=>{try{h.value=!0;const{data:s}=await b({timestamp:d.value.timestamp,type:v.value});g.value=s.data||"当前日志为空",a&&_.success("刷新成功")}catch(s){}finally{h.value=!1}},x=a=>{v.value=a,k()};return e(k),(s,t)=>{const e=u,b=a,d=l("bt-loading");return o(),r("div",f,[m(n(j),{onTabChange:x}),m(e,{type:"primary",onClick:t[0]||(t[0]=a=>k(!0))},{default:c(()=>t[1]||(t[1]=[i("刷新日志",-1)])),_:1,__:[1]}),p(m(b,{content:n(g),class:"h-[40rem] mt-1.2rem"},null,8,["content"]),[[d,n(h)],[d,"正在获取日志中，可能需要一段时间....","title"]])])}}});export{v as default};
