| | |
| | | method: 'get', |
| | | url: url, |
| | | responseType: 'blob', |
| | | headers: { Authorization: 'Bearer ' + getToken() } |
| | | headers: { |
| | | Authorization: 'Bearer ' + getToken(), |
| | | clientid: import.meta.env.VITE_APP_CLIENT_ID |
| | | } |
| | | }); |
| | | const isBlob = blobValidate(res.data); |
| | | if (isBlob) { |
| | |
| | | responseType: 'blob', |
| | | headers: { |
| | | Authorization: 'Bearer ' + getToken(), |
| | | datasource: localStorage.getItem('dataName') |
| | | datasource: localStorage.getItem('dataName'), |
| | | clientid: import.meta.env.VITE_APP_CLIENT_ID |
| | | } |
| | | }); |
| | | const isBlob = blobValidate(res.data); |
| | |
| | | } |
| | | downloadLoadingInstance.close(); |
| | | } catch (r) { |
| | | console.error(r) |
| | | ElMessage.error('下载文件出现错误,请联系管理员!') |
| | | console.error(r); |
| | | ElMessage.error('下载文件出现错误,请联系管理员!'); |
| | | downloadLoadingInstance.close(); |
| | | } |
| | | }, |