|
@@ -128,6 +128,7 @@ _$http.interceptors.request.use(
|
|
|
// Add a response interceptor
|
|
|
_$httpWith500Msg.interceptors.response.use(
|
|
|
response => {
|
|
|
+ window._hmt.push(["_trackEvent", "网络请求-响应", response.config.url]);
|
|
|
return response;
|
|
|
},
|
|
|
error => {
|
|
@@ -204,6 +205,7 @@ _$httpWith500Msg.interceptors.response.use(
|
|
|
_$http.interceptors.response.use(
|
|
|
// no auto 500 error UI
|
|
|
response => {
|
|
|
+ window._hmt.push(["_trackEvent", "网络请求-响应", response.config.url]);
|
|
|
return response;
|
|
|
},
|
|
|
error => {
|
|
@@ -288,5 +290,4 @@ loadProgressBar({}, Vue.$httpWithMsg);
|
|
|
loadProgressBar({}, Vue.$httpWithoutAuth);
|
|
|
|
|
|
import "axios-progress-bar/dist/nprogress.css";
|
|
|
-
|
|
|
export default Plugin;
|