Skip to content

Commit

Permalink
fix: 本地环境不添加百度统计脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiaa12 committed Jun 20, 2023
1 parent 975d028 commit 6ae6bbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/.vitepress/config.ts
Expand Up @@ -44,6 +44,7 @@ export default defineConfig({
{},
` var _hmt = _hmt || [];
(function() {
if(location.hostname === 'localhost') return;
var hm = window.document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?bb01df18792391bcc6952b8b90c01d65";
var s = window.document.getElementsByTagName("script")[0];
Expand Down

0 comments on commit 6ae6bbb

Please sign in to comment.