diff --git a/src/config/axios/index.ts b/src/config/axios/index.ts index b7ee24a..8398528 100644 --- a/src/config/axios/index.ts +++ b/src/config/axios/index.ts @@ -96,5 +96,9 @@ export default { ;(dom.parentNode as any).removeChild(dom) window.URL.revokeObjectURL(_url) }) - } + }, + //预览 + doPreviewFile:(option: AxiosConfig) => { + return request({ method: 'post', ...option,responseType: 'blob', headersType: 'application/json' }) as Promise> + }, }