]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: 关于pinia中文文档中的一个拼写错误修复 (#1778)
authorElvis <31996660+ElvisUpUp@users.noreply.github.com>
Mon, 7 Nov 2022 07:40:53 +0000 (15:40 +0800)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 07:40:53 +0000 (08:40 +0100)
packages/docs/zh/ssr/index.md

index 1400801e770977c54455abe794e7639fbbffc4fa..bf64d7099c30c6a2a1b51e777805a302400ccb57 100644 (file)
@@ -69,7 +69,7 @@ app.use(pinia)
 devalue(pinia.state.value)
 ```
 
-根据你服务端所渲染的内容,你将设置一个**初始状态**变量,该变量将在 HTML 中被序列化。你还应该保护自己免受 XSS 攻击。例如,在 [vit-ssr](https://github.com/frandiox/vite-ssr)中你可以使用[ `transformState` 选项](https://github.com/frandiox/vite-ssr#state-serialization) 以及 `@nuxt/devalue`:
+根据你服务端所渲染的内容,你将设置一个**初始状态**变量,该变量将在 HTML 中被序列化。你还应该保护自己免受 XSS 攻击。例如,在 [vite-ssr](https://github.com/frandiox/vite-ssr)中你可以使用[ `transformState` 选项](https://github.com/frandiox/vite-ssr#state-serialization) 以及 `@nuxt/devalue`:
 
 ```js
 import devalue from '@nuxt/devalue'