| | |
| | | import axios from 'axios' |
| | | import {ElLoading, ElMessage, ElMessageBox, ElNotification} from 'element-plus' |
| | | // import {ElLoading, ElMessage, ElMessageBox, ElNotification} from 'element-plus' |
| | | import {getToken} from '@/utils/auth' |
| | | import errorCode from '@/utils/errorCode' |
| | | import {blobValidate, tansParams} from '@/utils/ruoyi' |
| | |
| | | // axios中请求配置有baseURL选项,表示请求URL公共部分 |
| | | baseURL: import.meta.env.VITE_APP_BASE_API, |
| | | // 超时 |
| | | timeout: 1000000 |
| | | timeout: 300000 |
| | | }) |
| | | |
| | | |
| | |
| | | responseType: 'blob', |
| | | ...config |
| | | }).then(async (data) => { |
| | | console.log(data,"new Blob") |
| | | const isBlob = blobValidate(data); |
| | | if (isBlob) { |
| | | const blob = new Blob([data]) |