diff --git a/src/api/v1/files.ts b/src/api/v1/files.ts index f66bbec..a5ab909 100644 --- a/src/api/v1/files.ts +++ b/src/api/v1/files.ts @@ -7,8 +7,13 @@ export const fetchGetFilesList = (data: any) => { }; /** 系统文件管理---下载系统文件 */ -export const fetchDownloadFiles = (data: any) => { - return http.request('get', `files/downloadFiles/${data.id}`); +export const downloadFilesByFileId = (data: any) => { + return http.request('get', `files/downloadFilesByFileId/${data.id}`, { responseType: 'blob' }); +}; + +/** 系统文件管理---下载系统文件 */ +export const downloadFilesByFilepath = (data: any) => { + return http.request('get', `files/downloadFilesByFilepath`, { params: data, responseType: 'blob' }); }; /** 系统文件管理---添加系统文件管理 */ diff --git a/src/components/ReCropper/src/index.tsx b/src/components/ReCropper/src/index.tsx index 69f9887..051417e 100644 --- a/src/components/ReCropper/src/index.tsx +++ b/src/components/ReCropper/src/index.tsx @@ -128,11 +128,8 @@ export default defineComponent({ ...props.options, }); - if (!result.ready) { - isReady.value = true; - realTimeCroppered(); - emit('readied', cropper.value); - } + // 如果图片不存在直接将加载变为加载完成 + if (!result.ready) emit('readied', cropper.value); cropper.value = result; } diff --git a/src/components/Table/Userinfo/UserinfoDialog.vue b/src/components/Table/Userinfo/UserinfoDialog.vue index 597125f..8aa634a 100644 --- a/src/components/Table/Userinfo/UserinfoDialog.vue +++ b/src/components/Table/Userinfo/UserinfoDialog.vue @@ -1,9 +1,7 @@