Sfoglia il codice sorgente

数据源页面联动修改

ZhangYanJie 4 mesi fa
parent
commit
8c6f9baabb

+ 1 - 3
src/pages/internalEvaluation/configuration/datasources.tsx

@@ -417,13 +417,11 @@ const datasources: React.FC<widowRush> = (prop: widowRush) => {
       {detailVisible && (
         <SDModalForm
           onValuesChange={(a,b) => {
-            console.log(a.dataSourcesType);
             if (a.dataSourcesType === "JDBC"){
               setTypeStatus(1);
             }else if (a.dataSourcesType === "INTERFACE"){
               setTypeStatus(2);
-            }else if (a.dataSourcesType === undefined){
-              // TODO  待修改
+            }else if (b.dataSourcesType === undefined){
               setTypeStatus(0);
             }
           }}