mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-17 11:15:14 +00:00
e7cc2757c3
Co-authored-by: Alexander Lichter <manniL@gmx.net>
20 lines
276 B
JavaScript
20 lines
276 B
JavaScript
export const state = () => ({
|
|
list: [
|
|
'Lorem ipsum',
|
|
'dolor sit amet',
|
|
'consetetur sadipscing elitr'
|
|
]
|
|
})
|
|
|
|
export const mutations = {
|
|
add (state, title) {
|
|
state.list.push(title)
|
|
}
|
|
}
|
|
|
|
export const getters = {
|
|
get (state) {
|
|
return state.list
|
|
}
|
|
}
|