14 lines
217 B
JavaScript
14 lines
217 B
JavaScript
export const state = () => ({
|
|
quotes: [],
|
|
})
|
|
|
|
export const mutations = {
|
|
setQuotes(state, list) {
|
|
if (typeof list === 'undefined') {
|
|
state.quotes = []
|
|
} else {
|
|
state.quotes = list
|
|
}
|
|
},
|
|
}
|