]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs(zh): fix typo in nuxt auto-import (#2108)
author科科 <bernankez@qq.com>
Mon, 3 Apr 2023 09:20:53 +0000 (17:20 +0800)
committerGitHub <noreply@github.com>
Mon, 3 Apr 2023 09:20:53 +0000 (11:20 +0200)
packages/docs/zh/ssr/nuxt.md

index 13305f7a6e1e9b3a80d3cf6b4fe2c04873a4e711..74a549043c7b60244f9d92333cb19ee99208e3f6 100644 (file)
@@ -72,9 +72,9 @@ export default defineNuxtConfig({
       '@pinia/nuxt',
       {
         autoImports: [
-          // 自动引入 `usePinia()`
+          // 自动引入 `defineStore()`
           'defineStore',
-          // 自动引入 `usePinia()` 并重命名为 `usePiniaStore()`
+          // 自动引入 `defineStore()` 并重命名为 `definePiniaStore()`
           ['defineStore', 'definePiniaStore'],
         ],
       },