yh-uniapp/api/common.js
2024-12-06 14:01:20 +08:00

11 lines
192 B
JavaScript

import upload from "@/utils/upload";
export function uploadFile(file, timeout = 10000) {
return upload({
url: `/common/upload`,
filePath: file,
name: 'file',
timeout
})
}