魏熙美 пре 5 година
родитељ
комит
52f4a0d168
1 измењених фајлова са 8 додато и 4 уклоњено
  1. 8
    4
      src/components/XForm/ImageListUpload.jsx

+ 8
- 4
src/components/XForm/ImageListUpload.jsx Прегледај датотеку

@@ -29,10 +29,14 @@ class ImageListUpload extends React.Component {
29 29
       return;
30 30
     }
31 31
 
32
-    if (e.file.state === 'removed') {
33
-      const fileList = (this.props.value || []).filter(x => x != e.file.url);
34
-      this.props.onChange(fileList);
35
-    }
32
+    const fileList = (this.props.value || []).filter(x => x != e.file.url);
33
+    this.props.onChange(fileList);
34
+
35
+    // console.log('删除图片触发了', e.file)
36
+    // if (e.file.state === 'removed') {
37
+    //   const fileList = (this.props.value || []).filter(x => x != e.file.url);
38
+    //   this.props.onChange(fileList);
39
+    // }
36 40
 
37 41
     // if (e.file.status === "done") {
38 42
     //   this.setState({