knowyt/_client/src/store/myQuotes.js

14 lines
217 B
JavaScript
Raw Normal View History

2021-10-04 06:46:36 +00:00
export const state = () => ({
quotes: [],
})
export const mutations = {
setQuotes(state, list) {
if (typeof list === 'undefined') {
state.quotes = []
} else {
state.quotes = list
}
},
}