]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): Correct the code on line 11 in actions.md (#2026)
authorMrFlyHouse <102533859+MrFlyHouse@users.noreply.github.com>
Mon, 27 Feb 2023 13:10:34 +0000 (21:10 +0800)
committerGitHub <noreply@github.com>
Mon, 27 Feb 2023 13:10:34 +0000 (14:10 +0100)
packages/docs/zh/core-concepts/actions.md

index 97e5f6f417055db4f314799028cdd81745d5133c..b930e43f4ec87849539eacdd3196c7e108a41821 100644 (file)
@@ -8,7 +8,7 @@
 Action 相当于组件中的 [method](https://v3.vuejs.org/guide/data-methods.html#methods)。它们可以通过 `defineStore()` 中的 `actions` 属性来定义,**并且它们也是定义业务逻辑的完美选择。**
 
 ```js
-export const useStore = defineStore('main', {
+export const useCounterStore = defineStore('main', {
   state: () => ({
     count: 0,
   }),