Преглед изворни кода

数据源页面联动修改

ZhangYanJie пре 4 месеци
родитељ
комит
8c6f9baabb
1 измењених фајлова са 1 додато и 3 уклоњено
  1. 1 3
      src/pages/internalEvaluation/configuration/datasources.tsx

+ 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);
             }
           }}