diff --git a/src/api/platform/core/entity/upload.ts b/src/api/platform/core/entity/upload.ts index 6cebc0a..ed8b941 100644 --- a/src/api/platform/core/entity/upload.ts +++ b/src/api/platform/core/entity/upload.ts @@ -8,7 +8,7 @@ /** oss上传返回结果对象 */ export interface UploadResult { - message: string; - code: number; + bucketName: string; + fileName: string; url: string; } diff --git a/src/api/platform/system/controller/file.ts b/src/api/platform/system/controller/file.ts index d6fb053..7884378 100644 --- a/src/api/platform/system/controller/file.ts +++ b/src/api/platform/system/controller/file.ts @@ -20,7 +20,7 @@ enum Api { export const listFile = (params?: Partial) => defHttp.get({ url: Api.list, params }, { isReturnResultResponse: true }); /** 获取文件 */ -export const getFile = (bucket: string, fileName: string) => Promise.resolve(downloadByUrl({ url: `${apiUrl}/${Api.get}/${bucket}/${fileName}`, fileName: fileName })); +export const getFile = (bucket: string, fileName: string) => Promise.resolve(downloadByUrl({ url: `${apiUrl}${Api.get}/${bucket}/${fileName}`, fileName: fileName })); /** 获取本地模板文件 */ export const getLocalFile = (fileName: string) => defHttp.get({ url: `${Api.getLocal}/${fileName}` }); diff --git a/src/components/AMap/src/AMapDesigner/index.vue b/src/components/AMap/src/AMapDesigner/index.vue index eb26376..9f3b64a 100644 --- a/src/components/AMap/src/AMapDesigner/index.vue +++ b/src/components/AMap/src/AMapDesigner/index.vue @@ -82,7 +82,7 @@