Sfoglia il codice sorgente

注释多余部分

zhangxc 6 anni fa
parent
commit
5a24b30abd
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      src/components/DiagnosticItem/index.jsx

+ 6 - 6
src/components/DiagnosticItem/index.jsx

@@ -54,12 +54,12 @@ class DiagnosticItem extends Component{
         //         visible: false,
         //     },()=>{
                 const { diagnosticList, addDiagnostic, clearInput, hideSearch } = this.props;
-                for (let i = 0; i < diagnosticList.length; i++) {
-                    if(diagnosticList[i].id === item.id && diagnosticList[i].name === item.name) {
-                        Notify.info('该诊断已存在');
-                        return
-                    }
-                }
+                // for (let i = 0; i < diagnosticList.length; i++) {
+                //     if(diagnosticList[i].id === item.id && diagnosticList[i].name === item.name) {
+                //         Notify.info('该诊断已存在');
+                //         return
+                //     }
+                // }
                 addDiagnostic&&addDiagnostic(item);
                 clearInput&&clearInput();
                 hideSearch&&hideSearch()