]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
docs; Update composing-stores.md (#2705)
author赵弟栋 <zhaodidongdong@163.com>
Sun, 7 Jul 2024 09:58:08 +0000 (17:58 +0800)
committerGitHub <noreply@github.com>
Sun, 7 Jul 2024 09:58:08 +0000 (17:58 +0800)
useOtherStore should be useUserStore

packages/docs/zh/cookbook/composing-stores.md

index 41fb35cef2c4889463fcca6d74286cc59d880bc5..90ac2fa9ac8aef2fb224f7afd70331af0e7b9b03 100644 (file)
@@ -67,7 +67,7 @@ export const useCartStore = defineStore('cart', () => {
 
 ## 共享 Getter %{#shared-getters}%
 
-你可以直接在一个 _getter_ 中调用 `useOtherStore()`:
+你可以直接在一个 _getter_ 中调用 `useUserStore()`:
 
 ```js
 import { defineStore } from 'pinia'