// store/index.js export const state = () => ({ count: 0, }) export const mutations = { increment(state) { state.count += 1 }, increment_async(state, payload) { state.count += payload.value }, } export const actions = { async increment({ commit }) { const res = await fetch( 'https://community-open-w…