From: MrFlyHouse <102533859+MrFlyHouse@users.noreply.github.com> Date: Mon, 27 Feb 2023 13:10:34 +0000 (+0800) Subject: docs(zh): Correct the code on line 11 in actions.md (#2026) X-Git-Tag: pinia@2.0.33~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a060ba593e565a8b893b2ca1559510bdd4cc850e;p=thirdparty%2Fvuejs%2Fpinia.git docs(zh): Correct the code on line 11 in actions.md (#2026) --- diff --git a/packages/docs/zh/core-concepts/actions.md b/packages/docs/zh/core-concepts/actions.md index 97e5f6f4..b930e43f 100644 --- a/packages/docs/zh/core-concepts/actions.md +++ b/packages/docs/zh/core-concepts/actions.md @@ -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, }),