]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs: update plugins.md (#1116)
authorAlan Wang <wp_scut@163.com>
Fri, 4 Mar 2022 19:18:10 +0000 (14:18 -0500)
committerGitHub <noreply@github.com>
Fri, 4 Mar 2022 19:18:10 +0000 (20:18 +0100)
packages/docs/core-concepts/plugins.md

index 25d89622efb73bc5ecc2f4e1b6d5e51ca5f262b6..ea22a043923260e9ebefe1f030705b6a54e3e55a 100644 (file)
@@ -284,9 +284,9 @@ pinia.use(({ store }) => {
   store.hello = 'Hola'
   store.hello = ref('Hola')
 
-  store.number = Math.random()
+  store.simpleNumber = Math.random()
   // @ts-expect-error: we haven't typed this correctly
-  store.number = ref(Math.random())
+  store.simpleNumber = ref(Math.random())
 })
 ```