From: 苏杰豪 Date: Mon, 3 Apr 2023 09:17:09 +0000 (+0800) Subject: docs(zh): translation comments (#2079) X-Git-Tag: @pinia/nuxt@0.4.8~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ccdbf380c5eec23917b0e34c4b50a73f99567c03;p=thirdparty%2Fvuejs%2Fpinia.git docs(zh): translation comments (#2079) --- diff --git a/packages/docs/zh/cookbook/migration-vuex.md b/packages/docs/zh/cookbook/migration-vuex.md index 2ae236f4..c2995611 100644 --- a/packages/docs/zh/cookbook/migration-vuex.md +++ b/packages/docs/zh/cookbook/migration-vuex.md @@ -164,7 +164,7 @@ export const useAuthUserStore = defineStore('auth/user', { this.lastName = payload.lastName this.userId = payload.userId }, - // easily reset state using `$reset` + // 使用 `$reset` 可以轻松重置 state clearUser () { this.$reset() } diff --git a/packages/docs/zh/core-concepts/actions.md b/packages/docs/zh/core-concepts/actions.md index b930e43f..e521dd64 100644 --- a/packages/docs/zh/core-concepts/actions.md +++ b/packages/docs/zh/core-concepts/actions.md @@ -58,11 +58,11 @@ Action 可以像函数或者通常意义上的方法一样被调用: ```vue ``` @@ -208,7 +208,7 @@ unsubscribe() ```vue ``` diff --git a/packages/docs/zh/core-concepts/getters.md b/packages/docs/zh/core-concepts/getters.md index 97e52aff..4ac6ba68 100644 --- a/packages/docs/zh/core-concepts/getters.md +++ b/packages/docs/zh/core-concepts/getters.md @@ -99,8 +99,8 @@ export const useStore = defineStore('main', { import { useUserListStore } from './store' const userList = useUserListStore() const { getUserById } = storeToRefs(userList) -// note you will have to use `getUserById.value` to access -// the function within the