Skip to content

Instantly share code, notes, and snippets.

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