Skip to content

Commit

Permalink
fix(plugin-baidu-analytics): fix client-side error (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm authored Mar 27, 2024
1 parent 520a3b6 commit 7f1b5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/plugin-baidu-analytics/src/client/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
},
Expand Down

0 comments on commit 7f1b5e1

Please sign in to comment.