|
@@ -77,8 +77,10 @@ qmInstance.interceptors.response.use(
|
|
|
|
|
|
let detailInfo = "";
|
|
|
try {
|
|
|
- detailInfo +=
|
|
|
- error.config.url.replace(/=\w*/g, "=").replace(/\/\d+\//g, "/{id}/") +
|
|
|
+ (detailInfo += error.config.url
|
|
|
+ .replace(/=\w*/g, "=")
|
|
|
+ .replace(/\/\d+\//g, "/{id}/")
|
|
|
+ .replace(/\/\d+$/g, "/{id}")) +
|
|
|
" ||| " +
|
|
|
error.message;
|
|
|
} catch (error) {
|
|
@@ -164,7 +166,10 @@ qmInstance.interceptors.response.use(
|
|
|
"_trackEvent",
|
|
|
location.pathname.replace(/\d+/g, ""),
|
|
|
"status: " + status,
|
|
|
- error.config.url.replace(/=\w*/g, "=").replace(/\/\d+\//g, "/{id}/"),
|
|
|
+ error.config.url
|
|
|
+ .replace(/=\w*/g, "=")
|
|
|
+ .replace(/\/\d+\//g, "/{id}/")
|
|
|
+ .replace(/\/\d+$/g, "/{id}"),
|
|
|
]);
|
|
|
if (
|
|
|
wk_token &&
|