mirror of
https://gitee.com/gz-yami/mall4v.git
synced 2026-03-22 08:07:17 +08:00
修复导出excel表格报错
This commit is contained in:
@@ -28,6 +28,11 @@ http.interceptors.request.use(config => {
|
|||||||
* 响应拦截
|
* 响应拦截
|
||||||
*/
|
*/
|
||||||
http.interceptors.response.use(response => {
|
http.interceptors.response.use(response => {
|
||||||
|
// blob 格式处理
|
||||||
|
if (response.request.responseType === 'blob') {
|
||||||
|
return response
|
||||||
|
}
|
||||||
|
|
||||||
const res = response.data
|
const res = response.data
|
||||||
// 00000 请求成功
|
// 00000 请求成功
|
||||||
if (res.code === '00000') {
|
if (res.code === '00000') {
|
||||||
|
|||||||
Reference in New Issue
Block a user