Showing
1 changed file
with
1 additions
and
4 deletions
| @@ -91,12 +91,9 @@ export const saveDataViewList = (data: object) => { | @@ -91,12 +91,9 @@ export const saveDataViewList = (data: object) => { | ||
| 91 | */ | 91 | */ |
| 92 | export const uploadFile = async (file: FormData, mode: ErrorMessageMode = 'modal') => { | 92 | export const uploadFile = async (file: FormData, mode: ErrorMessageMode = 'modal') => { |
| 93 | return defHttp.post( | 93 | return defHttp.post( |
| 94 | - { url: Api.FILE_UPLOAD, params: file, headers: { | ||
| 95 | - 'Cache-Control' : 'no-cache', | ||
| 96 | - } }, | 94 | + { url: Api.FILE_UPLOAD, params: file}, |
| 97 | { | 95 | { |
| 98 | errorMessageMode: mode | 96 | errorMessageMode: mode |
| 99 | - | ||
| 100 | } | 97 | } |
| 101 | ) | 98 | ) |
| 102 | } | 99 | } |