You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
421 B

  1. import { defineStore } from 'pinia'
  2. export const useCheckStore = defineStore({
  3. id: 'check', // id必填,且需要唯一
  4. // state
  5. state: () => {
  6. return {
  7. manualCheck: false,
  8. checkNumber: '',
  9. }
  10. },
  11. // actions
  12. actions: {
  13. updateCheckNumber(checkNumber) {
  14. this.checkNumber = checkNumber
  15. },
  16. handleChangeCheck(manualCheck) {
  17. this.manualCheck = manualCheck
  18. },
  19. },
  20. })