]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): update state.md about `$reset` (#2142)
authordaxiongz <914622765@qq.com>
Sun, 16 Jul 2023 07:03:44 +0000 (15:03 +0800)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 07:03:44 +0000 (09:03 +0200)
Co-authored-by: zhangxiaoxiong <zhangxiaoxiong@MacBook-Pro.local>
packages/docs/zh/core-concepts/state.md

index bbb62d63354a6d47a905cd3cca78ea435342c237..276e974105913c52eb5a5d865f0a067b0a054358 100644 (file)
@@ -86,7 +86,7 @@ store.count++
 
 ## 重置 state %{#resetting-the-state}%
 
-你可以通过调用 store 的 `$reset()` 方法将 state 重置为初始值。
+使ç\94¨[é\80\89项å¼\8f API](/zh/core-concepts/index.md#option-stores) æ\97¶ï¼\8cä½ å\8f¯ä»¥é\80\9aè¿\87è°\83ç\94¨ store ç\9a\84 `$reset()` æ\96¹æ³\95å°\86 state é\87\8d置为å\88\9då§\8bå\80¼ã\80\82
 
 ```js
 const store = useStore()