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.
24 lines
374 B
24 lines
374 B
import M from '../ao-lib/mutations.js' |
|
|
|
const state = [] |
|
|
|
const mutations = { |
|
setCurrent(tasks, current) { |
|
tasks.forEach((task, i) => { |
|
delete tasks[i] |
|
}) |
|
tasks.length = 0 |
|
current.tasks.forEach((task, index) => { |
|
tasks.push(task) |
|
}) |
|
}, |
|
applyEvent: M.tasksMuts, |
|
} |
|
|
|
const actions = {} |
|
|
|
export default { |
|
state, |
|
mutations, |
|
actions, |
|
}
|
|
|