diff --git a/src/api/login.js b/src/api/login.js index 3829b0c..53c8219 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -59,3 +59,13 @@ timeout: 20000, }); } + +// 图片、文件上传 +export function sysUpload(data) { + return request({ + url: '/system/upload', + method: 'post', + data: data, + timeout: 60 * 1000, + }); +} \ No newline at end of file