|
|
|
@ -30,11 +30,18 @@ class RepositoryAddFileupload_files extends Component {
|
|
|
|
|
|
|
|
|
|
handleChange = (info) => {
|
|
|
|
|
|
|
|
|
|
if (info.file.status === 'uploading' || info.file.status === 'done') {
|
|
|
|
|
if (info.file.status === 'done') {
|
|
|
|
|
|
|
|
|
|
let fileList = [...info.fileList];
|
|
|
|
|
console.log(info)
|
|
|
|
|
console.log(info.file)
|
|
|
|
|
console.log(fileList)
|
|
|
|
|
|
|
|
|
|
if(info.file.response.status===-1){
|
|
|
|
|
notification.open({
|
|
|
|
|
message: '提示',
|
|
|
|
|
description:info.file.response.message,
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fileList = fileList.slice(-2);
|
|
|
|
|
fileList = fileList.map(file => {
|
|
|
|
|
if (file.response) {
|
|
|
|
|