mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-13 17:43:59 +00:00
17 lines
213 B
JavaScript
17 lines
213 B
JavaScript
export const state = {
|
|
list: []
|
|
}
|
|
|
|
export const mutations = {
|
|
add (state, { text }) {
|
|
state.list.push({
|
|
text,
|
|
done: false
|
|
})
|
|
},
|
|
|
|
toggle (state, todo) {
|
|
todo.done = !todo.done
|
|
}
|
|
}
|