Przeglądaj źródła

减少百度统计明细

Michael Wang 4 lat temu
rodzic
commit
4ccbabca54
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      src/plugins/axios.js

+ 2 - 3
src/plugins/axios.js

@@ -141,7 +141,7 @@ _$http.interceptors.request.use(
   }
   }
 );
 );
 
 
-const recordRequest = response => {
+const recordRequest = () => {
   let matchedRoutePath;
   let matchedRoutePath;
   try {
   try {
     const matched = router.resolve(location).route.matched;
     const matched = router.resolve(location).route.matched;
@@ -159,8 +159,7 @@ const recordRequest = response => {
   window._hmt.push([
   window._hmt.push([
     "_trackEvent",
     "_trackEvent",
     `页面-${matchedRoutePath || location.pathname}`,
     `页面-${matchedRoutePath || location.pathname}`,
-    "网络请求-响应",
-    new URL(response.config.url, "http://www.qmth.com.cn").pathname
+    "网络请求-响应"
   ]);
   ]);
 };
 };
 // Add a response interceptor
 // Add a response interceptor