12345678910111213141516171819202122232425 |
- import {
- defineStore
- } from 'pinia'
- export const useCheckinInfoStore = defineStore('checkinInfo', {
- state: () => {
- return {
- checkinInfo: []
- }
- },
- actions: {
- removeCheckinInfoAt(n) {
- if (n < this.idCardInfo.length && n >= 0) {
- this.checkinInfo.splice(n, 1)
- }
- },
- addCheckinInfo(info) {
- this.checkinInfo.push(info)
- },
- clearCheckinInfo() {
- this.checkinInfo = []
- }
- },
- unistorage: true
- })
|