From f5a209a00f046e0a8d36492b24faf16ccf67bc77 Mon Sep 17 00:00:00 2001 From: Lurantis <1510033076@qq.com> Date: Sun, 4 Feb 2024 23:19:49 +0800 Subject: [PATCH] fix: :bug: fix bug of useMutation --- plugins/apollo.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 plugins/apollo.ts diff --git a/plugins/apollo.ts b/plugins/apollo.ts new file mode 100644 index 0000000..1e0e22f --- /dev/null +++ b/plugins/apollo.ts @@ -0,0 +1,6 @@ +// https://github.com/nuxt-modules/apollo/issues/444#issuecomment-1354571194 +import { provideApolloClient } from '@vue/apollo-composable' + +export default defineNuxtPlugin(() => { + provideApolloClient(useApollo().clients!.default) +})