import{z as x,A as y,B as v,C as t,a9 as a,M as u,F as o,H as e,aG as k,aH as m,L as Q,a5 as C,Q as b,i as B,K as S,am as q,au as L}from"./index.39dbb28b.js";import{Q as V}from"./QList.3511b739.js";import{u as z}from"./use-quasar.5e1ad248.js";const I={class:"bg-white q-pa-lg text-center"},N={class:"text-subtitle text-weight-bold"},P={class:"q-ma-md"},D={__name:"SettingPage",setup(A){var l,r;const c=B("checkUpdate"),p=S(),n=x(),i=z(),_=(r=(l=window.AppVersion)==null?void 0:l.version)!=null?r:"0.0.15";function f(){q.logout().finally(s=>{n.clear(),p.replace("/login").finally(()=>{location.reload()})})}function w(){try{window.cache.cleartemp(),window.cache.clear(()=>{i.notify("\u6E05\u9664\u7F13\u5B58\u6210\u529F!")})}catch(s){console.error(s),window.location.reload(),i.notify("\u6E05\u9664\u7F13\u5B58\u6210\u529F")}}return(s,d)=>{const h=L("PageLayout");return y(),v(h,{class:""},{default:t(()=>[a("div",I,[a("div",N,u(o(n).shop.name),1),a("div",{class:"text-caption text-grey",onClick:d[0]||(d[0]=(...g)=>o(c)&&o(c)(...g))},"\u5F53\u524D\u7248\u672C\uFF1Av"+u(o(_)),1)]),e(V,{class:"q-mt-sm bg-white"},{default:t(()=>[e(k,{clickable:"",onClick:w},{default:t(()=>[e(m,null,{default:t(()=>[Q("\u6E05\u7406\u7F13\u5B58")]),_:1}),e(m,{side:""},{default:t(()=>[e(C,{size:"xs",name:"arrow_forward_ios"})]),_:1})]),_:1})]),_:1}),a("div",P,[e(b,{class:"fit",color:"primary","text-color":"white",unelevated:"",size:"md",label:"\u9000\u51FA\u5F53\u524D\u8D26\u53F7",onClick:f})])]),_:1})}}};export{D as default};