api/common.js
@@ -35,14 +35,16 @@ }); } export function getPreviewUrl(params){ return http.request({ url: `${api.common}/lmk/file/preview`, method: Method.POST, data:params }); /** * 获取文件访问地址 */ export function getFilePreviewUrl(fileKey) { return http.request({ url: `${api.common}/lmk/file/preview`, method: Method.POST, data: {fileKey: fileKey} }); } /** * 文件上传地址