|
@@ -85,7 +85,7 @@ export class Interceptors {
|
|
`接口地址:${res.config.method.toUpperCase()} ${res.request.responseURL}`,
|
|
`接口地址:${res.config.method.toUpperCase()} ${res.request.responseURL}`,
|
|
`接口状态:${res.status} ${res.statusText}`,
|
|
`接口状态:${res.status} ${res.statusText}`,
|
|
`请求Token:${res.config.headers.Authorization}`,
|
|
`请求Token:${res.config.headers.Authorization}`,
|
|
- `请求参数:${res.config.data}`,
|
|
|
|
|
|
+ `请求参数:${res.config.data || ''}`,
|
|
`返回结果:${res.request.response}`,
|
|
`返回结果:${res.request.response}`,
|
|
]
|
|
]
|
|
arr.forEach((v) => {
|
|
arr.forEach((v) => {
|
|
@@ -96,7 +96,7 @@ export class Interceptors {
|
|
const url = URL.createObjectURL(blob)
|
|
const url = URL.createObjectURL(blob)
|
|
const a = document.createElement('a')
|
|
const a = document.createElement('a')
|
|
a.href = url
|
|
a.href = url
|
|
- a.download = `错误日志_${YMDHms(res.headers.date)}.txt`
|
|
|
|
|
|
+ a.download = `错误日志(${YMDHms(res.headers.date)}).txt`
|
|
document.body.appendChild(a)
|
|
document.body.appendChild(a)
|
|
a.click()
|
|
a.click()
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|