Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikeapr4/5661c9fa441e6fba2494efc28c83be5b to your computer and use it in GitHub Desktop.
Save mikeapr4/5661c9fa441e6fba2494efc28c83be5b to your computer and use it in GitHub Desktop.
state: { loading: false },
mutations: {
startLoading(state) {
state.loading = true;
},
stopLoading(state) {
state.loading = false;
},
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment