Skip to content

Commit edcde8b

Browse files
authored
add:百度统计 (#54)
1 parent 5284915 commit edcde8b

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/src/.vuepress/config.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ export default defineUserConfig({
2020

2121
theme,
2222

23+
head: [
24+
[
25+
'script',
26+
{},
27+
`
28+
var _hmt = _hmt || [];
29+
(function() {
30+
var hm = document.createElement(\"script\");
31+
hm.src = \"https://hm.baidu.com/hm.js?b12a52eecef6bedee8b8e2d510346a6e\";
32+
var s = document.getElementsByTagName(\"script\")[0];
33+
s.parentNode.insertBefore(hm, s);
34+
})();
35+
`
36+
]
37+
],
2338
// Enable it with pwa
2439
// shouldPrefetch: false,
2540
});

0 commit comments

Comments
 (0)