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.
27 lines
569 B
27 lines
569 B
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 |
|
}, |
|
}, |
|
|
|
})
|
|
|