mirror of
https://github.com/doocs/md.git
synced 2025-02-12 17:50:07 +08:00
15 lines
217 B
JavaScript
15 lines
217 B
JavaScript
|
import fetch from './fetch';
|
||
|
|
||
|
|
||
|
function fileUpload(data) {
|
||
|
return fetch({
|
||
|
url: 'https://imgkr.com/api/files/upload',
|
||
|
method: 'post',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
export default {
|
||
|
fileUpload
|
||
|
};
|