|
@@ -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
|