idCardInfoStore.js 247 B

1234567891011121314151617
  1. import {
  2. defineStore
  3. } from 'pinia'
  4. export const useIdCardInfoStore = defineStore('idCardInfo', {
  5. state: () => {
  6. return {
  7. idCardInfo: []
  8. }
  9. },
  10. actions: {
  11. addIdCardInfo(info) {
  12. this.idCardInfo.push(info)
  13. }
  14. },
  15. unistorage: true
  16. })