Michael Wang пре 4 година
родитељ
комит
4ccbabca54
1 измењених фајлова са 2 додато и 3 уклоњено
  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;
   try {
     const matched = router.resolve(location).route.matched;
@@ -159,8 +159,7 @@ const recordRequest = response => {
   window._hmt.push([
     "_trackEvent",
     `页面-${matchedRoutePath || location.pathname}`,
-    "网络请求-响应",
-    new URL(response.config.url, "http://www.qmth.com.cn").pathname
+    "网络请求-响应"
   ]);
 };
 // Add a response interceptor