


























ts
import googleAnalytics from "vitepress-plugin-google-analytics"; // 引入谷歌统计插件
export default {
extends: Teek,
DefaultTheme,
Layout: defineComponent({
return () =>
h(Teek.Layout, null, {
"layout-top": () => h(notice), // 使用layout-top插槽
googleAnalytics: () =>
h(googleAnalytics, {
id: "G-******", //跟踪ID,在analytics.google.com注册即可
}), // 使用googleAnalytics插槽
"Teek-notice-content": () => h(NoticeContent),
});
},
}),
};此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。