1 2 3 4 5 6 7 8 9 10 11 12 13 14
export const state = () => ({ loading: false, }); export const getters = { isLoading: (state) => { return state.loading; }, }; export const mutations = { loadingStatus: (state, value) => { state.loading = value; }, };