| | |
| | | import errorCode from '@/utils/errorCode'; |
| | | import { blobValidate } from '@/utils/ruoyi'; |
| | | import { LoadingInstance } from 'element-plus/es/components/loading/src/loading'; |
| | | import { globalHeaders } from "@/utils/request"; |
| | | import { globalHeaders } from '@/utils/request'; |
| | | |
| | | const baseURL = import.meta.env.VITE_APP_BASE_API; |
| | | let downloadLoadingInstance: LoadingInstance; |
| | |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: globalHeaders(), |
| | | headers: globalHeaders() |
| | | }); |
| | | const isBlob = blobValidate(res.data); |
| | | if (isBlob) { |
| | |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: globalHeaders(), |
| | | headers: globalHeaders() |
| | | }); |
| | | const isBlob = blobValidate(res.data); |
| | | if (isBlob) { |