if(file.response!=undefined){

dev_aliyun_beta
hjm 6 years ago
parent 9a27974fa9
commit 35f79be6bd

@ -191,18 +191,18 @@ class NewWorkForm extends Component{
} }
onAttachmentRemove = (file, stateName) => { onAttachmentRemove = (file, stateName) => {
this.props.confirm({ if(file.response!=undefined){
content: '是否确认删除?', this.props.confirm({
content: '是否确认删除?',
onOk: () => {
this.deleteAttachment(file, stateName) onOk: () => {
}, this.deleteAttachment(file, stateName)
onCancel() { },
console.log('Cancel'); onCancel() {
}, console.log('Cancel');
}); },
});
}
return false; return false;
} }
deleteAttachment = (file, stateName) => { deleteAttachment = (file, stateName) => {

Loading…
Cancel
Save