import{az as a,d as s,b as n,o as r,_ as c,e as d,f as p}from"./index.0308b213.js";function u(){return a.get("adminapi/Workbench/index")}const _=s({setup(){const e=n({version:{version:"",website:""},today:{},menu:[],visitor:[],article:[],visitorOption:{xAxis:{type:"category",data:[0]},yAxis:{type:"value"},legend:{data:["\u8BBF\u95EE\u91CF"]},itemStyle:{color:"red"},tooltip:{trigger:"axis"},series:[{name:"\u8BBF\u95EE\u91CF",data:[0],type:"line"}]}}),i=()=>{u().then(t=>{console.log("res",t),e.version=t.version,e.today=t.today,e.menu=t.menu,e.visitor=t.visitor,e.article=t.article,e.visitorOption.xAxis.data=[],e.visitorOption.series[0].data=[],t.visitor.date.reverse().forEach(o=>{e.visitorOption.xAxis.data.push(o)}),t.visitor.list[0].data.forEach(o=>{e.visitorOption.series[0].data.push(o)})}).catch(t=>{console.log("err",t)})};return r(()=>{i()}),{workbenchData:e,getWorkbench:i}}});const l={class:"workbench"};function v(e,i,t,o,x,f){return d(),p("div",l)}const m=c(_,[["render",v],["__scopeId","data-v-9fe08807"]]);export{m as default};
