lcny-vue3-antd-admin/dist/assets/visualization.e2a861b8.js

2 lines
613 B
JavaScript

import{c9 as a,g7 as t,g8 as s}from"./index.d96edf17.js";const i=a({id:"app-visualization",state:()=>({year:Number(localStorage.getItem(t))||new Date().getFullYear()-1,addressId:null,play:localStorage.getItem(s)==="true"}),getters:{getYear(){return this.year},getAddresId(){var e;return(e=this==null?void 0:this.addressId)!=null?e:null},getPlay(){return this.play}},actions:{setAddressId(e){this.addressId=e},setYear(e){this.year=e,localStorage.setItem(t,String(e))},setPlay(e){this.play=e,localStorage.setItem(s,String(e))},plus(){this.setYear(this.year+1)},minus(){this.setYear(this.year-1)}}});export{i as u};