2 lines
479 B
JavaScript
2 lines
479 B
JavaScript
import{bb as s,dv as t}from"./index.600742c0.js";const a=s({id:"app-visualization",state:()=>({year:Number(localStorage.getItem(t))||new Date().getFullYear(),addressId:null}),getters:{getYear(){return this.year},getAddresId(){var e;return(e=this==null?void 0:this.addressId)!=null?e:null}},actions:{setAddressId(e){this.addressId=e},setYear(e){this.year=e,localStorage.setItem(t,String(e))},plus(){this.setYear(this.year+1)},minus(){this.setYear(this.year-1)}}});export{a as u};
|