]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): typo (#2138)
authorZhao Lu <zhaolu880226@163.com>
Thu, 13 Apr 2023 08:17:47 +0000 (16:17 +0800)
committerGitHub <noreply@github.com>
Thu, 13 Apr 2023 08:17:47 +0000 (10:17 +0200)
packages/docs/zh/cookbook/composables.md

index fbecde31b1b036c33f51954c60cf9a16ccacad12..5c78efdd762aa94d6724156c247060841deb771b 100644 (file)
@@ -91,7 +91,7 @@ const useColorStore = defineStore('colors', () => {
   const lastColor = useLocalStorage('lastColor', sRGBHex)
   // ...
   return {
-    lastColor: skipHydrate(pickedColor), // Ref<string>
+    lastColor: skipHydrate(lastColor), // Ref<string>
     open, // Function
     isSupported, // boolean (非响应式)
   }