ソースを参照

取消百度统计

sunjh 6 年 前
コミット
85fba45b9f
1 ファイル変更12 行追加12 行削除
  1. 12 12
      src/main.js

+ 12 - 12
src/main.js

@@ -62,19 +62,19 @@ import {
 function getCurrentUserSuccess(res){
 
 }
-var _hmt = _hmt || [];
-(function() {
-  var hm = document.createElement("script");
-  hm.src = "https://hm.baidu.com/hm.js?0e3bd98236bd62558926fc433751d60c";
-  var s = document.getElementsByTagName("script")[0];
-  s.parentNode.insertBefore(hm, s);
-})();
+// var _hmt = _hmt || [];
+// (function() {
+//   var hm = document.createElement("script");
+//   hm.src = "https://hm.baidu.com/hm.js?0e3bd98236bd62558926fc433751d60c";
+//   var s = document.getElementsByTagName("script")[0];
+//   s.parentNode.insertBefore(hm, s);
+// })();
 router.beforeEach((to, from, next) => {
-  if (_hmt) {
-    if (to.path) {
-      _hmt.push(['_trackPageview', '/#' + to.fullPath]);
-    }
-  }
+  // if (_hmt) {
+  //   if (to.path) {
+  //     _hmt.push(['_trackPageview', '/#' + to.fullPath]);
+  //   }
+  // }
   const urls = getAuthUrls()
   if (storageGet('user') == null) {
     getCurrentUser().then((res) => {