From 774d615a7974ae7a6b4ffb737446bae60e9f5355 Mon Sep 17 00:00:00 2001 From: ZiuChen <457353192@qq.com> Date: Fri, 19 Aug 2022 22:26:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AC=E5=9C=B0=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E4=B8=8D=E6=89=A7=E8=A1=8C=E5=9F=8B?= =?UTF-8?q?=E7=82=B9=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js index 62c09eca..c5c4bd98 100644 --- a/docs/.vuepress/config.js +++ b/docs/.vuepress/config.js @@ -9,12 +9,14 @@ module.exports = { /* js */ ` var _hmt = _hmt || []; (function() { + var isDev = document.location.href.indexOf("localhost") !== -1 var isGitee = document.location.href.indexOf("gitee.io") !== -1 var hm1 = document.createElement("script"); hm1.src = "https://hm.baidu.com/hm.js?08b4ef50a9244e83e5a1bd5822442829"; // gitee var hm2 = document.createElement("script"); hm2.src = "https://hm.baidu.com/hm.js?50bac15a1f238d1aa61f104a5fb6f5e0"; // github var s = document.getElementsByTagName("script")[0]; + if(isDev) return // 不上报 if (isGitee) s.parentNode.insertBefore(hm1, s); else s.parentNode.insertBefore(hm2, s); })();