export const state = () => ({ loading: false }); export const mutations = { updateLoading(state) { state.loading = !state.loading; } };