student-register-store-20da1c1d.js 694 B

1
  1. import{b2 as d,b3 as o,b4 as n}from"./index-bc617d61.js";const i=n({prefixKey:"",storage:sessionStorage}),c=d("student-register-store",{state:()=>({token:i.get(o,""),selectGoods:[],selectVip:[]}),getters:{getToken(){return this.token},getGoods(){return this.selectGoods},getVip(){return this.selectVip}},actions:{setToken(e){this.token=e,i.set(o,e)},setGoods(e){this.selectGoods.push(e)},deleteGoods(e){const s=this.selectGoods.findIndex(t=>t.goodsId===e);this.selectGoods.splice(s,1)},setVip(e){this.selectVip=e},deleteVip(e){const s=this.selectVip.findIndex(t=>t.goodsId===e);this.selectVip.splice(s,1)},selectedVip(e){return this.selectVip.findIndex(t=>t.goodsId===e)>=0}}});export{c as u};