update
This commit is contained in:
@@ -30,6 +30,19 @@ const system = {
|
||||
]
|
||||
});
|
||||
})
|
||||
},
|
||||
uploadFile: async (file) => {
|
||||
const formData = new FormData();
|
||||
formData.append('file', file);
|
||||
return request({
|
||||
UN_AES: true,
|
||||
url: '/admin/upload/upload',
|
||||
method: Method.POST,
|
||||
data: formData,
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data; boundary=--------------------------611824495457697861278283'
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user