]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update actions.md (#2120)
authorPhan Chinh Quoc <61355840+chinhquoc01@users.noreply.github.com>
Wed, 5 Apr 2023 10:09:22 +0000 (17:09 +0700)
committerGitHub <noreply@github.com>
Wed, 5 Apr 2023 10:09:22 +0000 (12:09 +0200)
packages/docs/core-concepts/actions.md

index 5550c69ca100ccc0f07632bb2c8d6f28b3c5a32b..6fd99debcce442438238fb411a17a58763e1a4dd 100644 (file)
@@ -157,7 +157,7 @@ export default {
   methods: {
     // gives access to this.increment() inside the component
     // same as calling from store.increment()
-    ...mapActions(useCounterStore, ['increment'])
+    ...mapActions(useCounterStore, ['increment']),
     // same as above but registers it as this.myOwnName()
     ...mapActions(useCounterStore, { myOwnName: 'increment' }),
   },