11 lines
192 B
JavaScript
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
|
|
})
|
|
}
|