]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(nuxt): fix Auto imports example typo (#1609)
authorTomatoGuy0502 <H34066131@gs.ncku.edu.tw>
Tue, 30 Aug 2022 22:16:28 +0000 (06:16 +0800)
committerGitHub <noreply@github.com>
Tue, 30 Aug 2022 22:16:28 +0000 (00:16 +0200)
packages/docs/ssr/nuxt.md

index 90e6c62981cad917d7cc7ab246cd2595bfd13eaa..016475dba289ca90cf621f62ac9a62ab4906dd3d 100644 (file)
@@ -53,10 +53,10 @@ export default defineNuxtConfig({
       '@pinia/nuxt',
       {
         autoImports: [
-          // automatically imports `usePinia()`
-          'defineStore',
-          // automatically imports `usePinia()` as `usePiniaStore()`
-          ['defineStore', 'definePiniaStore'],
+          // automatically imports `defineStore`
+          'defineStore', // import { defineStore } from 'pinia'
+          // automatically imports `defineStore` as `definePiniaStore`
+          ['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
         ],
       },
     ],