]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): update actions.md (#1937)
author林洵锋 <linxunfeng@yeah.net>
Thu, 19 Jan 2023 09:02:33 +0000 (17:02 +0800)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Wed, 15 Feb 2023 09:52:57 +0000 (10:52 +0100)
packages/docs/zh/core-concepts/actions.md

index 8201f31108e01efd14d3cc30b08c806fc7332ae4..855666c4fef337feb25154e5264141021890e1ef 100644 (file)
@@ -169,7 +169,7 @@ export default {
     // 与从 store.increment() 调用相同
     ...mapActions(useCounterStore, ['increment'])
     // 与上述相同,但将其注册为this.myOwnName()
-    ...mapActions(useCounterStore, { myOwnName: 'doubleCount' }),
+    ...mapActions(useCounterStore, { myOwnName: 'increment' }),
   },
 }
 ```