From ccdbf380c5eec23917b0e34c4b50a73f99567c03 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E8=8B=8F=E6=9D=B0=E8=B1=AA?= Date: Mon, 3 Apr 2023 17:17:09 +0800 Subject: [PATCH] docs(zh): translation comments (#2079) --- packages/docs/zh/cookbook/migration-vuex.md | 2 +- packages/docs/zh/core-concepts/actions.md | 6 +++--- packages/docs/zh/core-concepts/getters.md | 4 ++-- packages/docs/zh/core-concepts/index.md | 22 ++++++++++----------- packages/docs/zh/core-concepts/plugins.md | 2 +- packages/docs/zh/core-concepts/state.md | 2 +- packages/docs/zh/introduction.md | 6 +++--- packages/docs/zh/ssr/index.md | 4 ++-- 8 files changed, 24 insertions(+), 24 deletions(-) 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