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.
28 lines
569 B
28 lines
569 B
2 years ago
|
import { defineStore } from 'pinia'
|
||
|
|
||
|
export const useTaskListStore = defineStore('useTaskListStore', {
|
||
|
state: () => {
|
||
|
return {
|
||
|
basicTask: false,
|
||
|
noviceTask: false,
|
||
|
dailyTask: false,
|
||
|
otherTask: false,
|
||
|
}
|
||
|
},
|
||
|
actions: {
|
||
|
changeBasicTask(status: boolean) {
|
||
|
this.basicTask = status
|
||
|
},
|
||
|
changeNoviceTask(status: boolean) {
|
||
|
this.noviceTask = status
|
||
|
},
|
||
|
changeDailyTask(status: boolean) {
|
||
|
this.dailyTask = status
|
||
|
},
|
||
|
changeOtherTask(status: boolean) {
|
||
|
this.otherTask = status
|
||
|
},
|
||
|
},
|
||
|
|
||
|
})
|