We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1564c9 commit 904cd85Copy full SHA for 904cd85
packages/docs/zh/core-concepts/index.md
@@ -34,9 +34,9 @@ export const useAlertsStore = defineStore('alerts', {
34
35
```js {2-10}
36
export const useCounterStore = defineStore('counter', {
37
- state: () => ({ count: 0 }),
+ state: () => ({ count: 0, name: 'Eduardo' }),
38
getters: {
39
- double: (state) => state.count * 2,
+ doubleCount: (state) => state.count * 2,
40
},
41
actions: {
42
increment() {
0 commit comments