]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): fix code fence (#2012)
author谢克成 <xkccoding@gmail.com>
Sun, 19 Feb 2023 18:10:11 +0000 (02:10 +0800)
committerGitHub <noreply@github.com>
Sun, 19 Feb 2023 18:10:11 +0000 (19:10 +0100)
packages/docs/zh/core-concepts/index.md

index 45efbb10047e0007bc9d1abbd8494403aec87658..344fd4c72941c3ae97e097c82cce1e9eeee00636 100644 (file)
@@ -109,7 +109,7 @@ const doubleValue = computed(() => store.doubleCount)
 
 为了从 store 中提取属性时保持其响应性,你需要使用 `storeToRefs()`。它将为每一个响应式属性创建引用。当你只使用 store 的状态而不调用任何 action 时,它会非常有用。请注意,你可以直接从 store 中解构 action,因为它们也被绑定到 store 上:
 
-````vue
+```vue
 <script setup>
 import { storeToRefs } from 'pinia'
 const store = useCounterStore()