From 2e906fcab97411554c8b05c75866d4534453c2ee Mon Sep 17 00:00:00 2001 From: Zihan Hu Date: Wed, 27 Mar 2024 00:06:53 +0800 Subject: [PATCH] fix(plugin-baidu-analytics): fix client-side error --- plugins/plugin-baidu-analytics/src/client/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/plugin-baidu-analytics/src/client/config.ts b/plugins/plugin-baidu-analytics/src/client/config.ts index cdfe1e1ed7..3691ac32b1 100644 --- a/plugins/plugin-baidu-analytics/src/client/config.ts +++ b/plugins/plugin-baidu-analytics/src/client/config.ts @@ -5,7 +5,7 @@ import { useBaiduAnalytics } from './composables/index.js' declare const __BD_ID__: string export default defineClientConfig({ - enhance() { + setup() { if (__VUEPRESS_SSR__) return useBaiduAnalytics(__BD_ID__) },