From: lightnoway Date: Fri, 16 Aug 2024 09:06:42 +0000 (+0800) Subject: docs: Update index.md (#2742) X-Git-Tag: @pinia/nuxt@0.5.4~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=904cd8547576f38ca400701a16c749c9015476f9;p=thirdparty%2Fvuejs%2Fpinia.git docs: Update index.md (#2742) code of zh is outdate to en --- diff --git a/packages/docs/zh/core-concepts/index.md b/packages/docs/zh/core-concepts/index.md index fdf7a0a2..5aa1519a 100644 --- a/packages/docs/zh/core-concepts/index.md +++ b/packages/docs/zh/core-concepts/index.md @@ -34,9 +34,9 @@ export const useAlertsStore = defineStore('alerts', { ```js {2-10} export const useCounterStore = defineStore('counter', { - state: () => ({ count: 0 }), + state: () => ({ count: 0, name: 'Eduardo' }), getters: { - double: (state) => state.count * 2, + doubleCount: (state) => state.count * 2, }, actions: { increment() {