From: 赵弟栋 Date: Sun, 7 Jul 2024 09:58:08 +0000 (+0800) Subject: docs; Update composing-stores.md (#2705) X-Git-Tag: @pinia/nuxt@0.5.2~14 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2ec4e418d58f32fc5aff8f3e7a4651e627496155;p=thirdparty%2Fvuejs%2Fpinia.git docs; Update composing-stores.md (#2705) useOtherStore should be useUserStore --- diff --git a/packages/docs/zh/cookbook/composing-stores.md b/packages/docs/zh/cookbook/composing-stores.md index 41fb35ce..90ac2fa9 100644 --- a/packages/docs/zh/cookbook/composing-stores.md +++ b/packages/docs/zh/cookbook/composing-stores.md @@ -67,7 +67,7 @@ export const useCartStore = defineStore('cart', () => { ## 共享 Getter %{#shared-getters}% -你可以直接在一个 _getter_ 中调用 `useOtherStore()`: +你可以直接在一个 _getter_ 中调用 `useUserStore()`: ```js import { defineStore } from 'pinia'