import{e as s,r as a,f as l,a1 as e,a as n,b as t,t as i,l as c,aq as v,o,_ as p}from"./index-C1tQD-C0.js";import{e as u}from"./index-BimIWPqC.js";const d={class:"version-setting"},r={class:"setting-item"},m={class:"value"},f={class:"setting-item"},b={class:"value"},g={class:"setting-item"},_={class:"value"},x={class:"setting-item"},V={class:"value"},j={class:"setting-item"},I={class:"value"},q=p(s({__name:"Version",setup(s){const p=a(),q=async()=>{const s=await v();s&&s.success?p.value=s.data:s&&s.data&&s.data.info&&u.error(s.data.info)};return l((()=>{q()})),e((()=>{q()})),(s,a)=>{var l,e,v,u;return o(),n("div",d,[t("div",r,[a[0]||(a[0]=t("span",{class:"label"},"SN",-1)),t("span",m,i(null==(l=p.value)?void 0:l.sn),1)]),t("div",f,[a[1]||(a[1]=t("span",{class:"label"},"App",-1)),t("span",b,i(null==(e=p.value)?void 0:e.appVersion),1)]),t("div",g,[a[2]||(a[2]=t("span",{class:"label"},"MCU",-1)),t("span",_,i(null==(v=p.value)?void 0:v.mcuVersion),1)]),t("div",x,[a[3]||(a[3]=t("span",{class:"label"},"Local IP",-1)),t("span",V,i(null==(u=p.value)?void 0:u.ip),1)]),t("div",j,[a[4]||(a[4]=t("span",{class:"label"},"系统版本号",-1)),t("span",I,"v"+i(c("0.0.23")),1)])])}}}),[["__scopeId","data-v-21ffbc96"]]);export{q as default};
