api/common.js
@@ -36,7 +36,19 @@ } /** * 获取文件访问地址 */ export function getFilePreviewUrl(fileKey) { return http.request({ url: `${api.common}/lmk/file/preview`, method: Method.POST, data: {fileKey: fileKey} }); } /** * 文件上传地址 * @type {string} */ export const upload = api.common + "/common/upload/file"; export const upload = api.common + "/lmk/file/upload"; export const multiUpload = api.common + "/lmk/file/multi/upload";