Skip to content

Commit 904cd85

Browse files
authored
docs: Update index.md (#2742)
code of zh is outdate to en
1 parent b1564c9 commit 904cd85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docs/zh/core-concepts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ export const useAlertsStore = defineStore('alerts', {
3434

3535
```js {2-10}
3636
export const useCounterStore = defineStore('counter', {
37-
state: () => ({ count: 0 }),
37+
state: () => ({ count: 0, name: 'Eduardo' }),
3838
getters: {
39-
double: (state) => state.count * 2,
39+
doubleCount: (state) => state.count * 2,
4040
},
4141
actions: {
4242
increment() {

0 commit comments

Comments
 (0)