|
@@ -274,7 +274,9 @@ service.interceptors.response.use(
|
|
|
}
|
|
|
const _index = errorData.findIndex(e => e.url === config.url && e.time === +config.headers.timestamp)
|
|
|
if (_index > -1) {
|
|
|
- const _item = errorData.splice(_index, 1)
|
|
|
+ const _spliceItem = errorData.splice(_index, 1)
|
|
|
+ const _item = _spliceItem[0]
|
|
|
+
|
|
|
// 保存错误信息
|
|
|
if (code === 400) {
|
|
|
sendError({ content: JSON.stringify(_item.content), mark: _item.time + '' })
|