Skip to content

Commit

Permalink
docs(zh): Correct the code on line 11 in actions.md (#2026)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlyHouse authored Feb 27, 2023
1 parent b390f18 commit a060ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docs/zh/core-concepts/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}),
Expand Down

0 comments on commit a060ba5

Please sign in to comment.