diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue index db99d00a0c..0d05205d28 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/datasource/pages/list/_source/createDataSource.vue @@ -429,14 +429,14 @@ this.showdDatabase = false; } - if (value== 'ORACLE') { + if (value== 'ORACLE' && !this.item.id) { this.showConnectType = true; this.connectType = 'ORACLE_SERVICE_NAME' + } else if(value== 'ORACLE' && this.item.id) { + this.showConnectType = true; } else { this.showConnectType = false; - this.connectType = '' } - //Set default port for each type datasource this._setDefaultValues(value)