|
@@ -13,6 +13,7 @@ import { rewardEventTrackClick } from '@/api/integral'
|
|
|
import errorCode from './errorCode'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
import { sendError } from '@/api/Verifition'
|
|
|
+import { generateUUID } from "@/utils"
|
|
|
|
|
|
// import { resetRouter } from '@/router'
|
|
|
// import { deleteUserCache } from '@/hooks/web/useCache'
|
|
@@ -128,6 +129,7 @@ service.interceptors.request.use(
|
|
|
errorData.push({
|
|
|
time: header.timestamp,
|
|
|
url: config.url,
|
|
|
+ mark: generateUUID(),
|
|
|
content
|
|
|
})
|
|
|
Object.assign(config.headers, header)
|
|
@@ -255,7 +257,7 @@ service.interceptors.response.use(
|
|
|
} else {
|
|
|
if (_index > -1) {
|
|
|
// 保存错误信息
|
|
|
- sendError({ content: JSON.stringify(errorData[_index].content) })
|
|
|
+ sendError({ content: JSON.stringify(errorData[_index].content), mark: errorData[_index].mark })
|
|
|
// 移除
|
|
|
errorData.splice(_index, 1)
|
|
|
}
|