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