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
20 lines
421 B
import { defineStore } from 'pinia'
|
|
export const useCheckStore = defineStore({
|
|
id: 'check', // id必填,且需要唯一
|
|
// state
|
|
state: () => {
|
|
return {
|
|
manualCheck: false,
|
|
checkNumber: '',
|
|
}
|
|
},
|
|
// actions
|
|
actions: {
|
|
updateCheckNumber(checkNumber) {
|
|
this.checkNumber = checkNumber
|
|
},
|
|
handleChangeCheck(manualCheck) {
|
|
this.manualCheck = manualCheck
|
|
},
|
|
},
|
|
})
|