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