export const state = () => ({ quotes: [], }) export const mutations = { setQuotes(state, list) { if (typeof list === 'undefined') { state.quotes = [] } else { state.quotes = list } }, }