Merge pull request #13162 from dataease/pr@dev-v2_dzz

fix(数据源): 创建Elasticsearch数据源,地址栏没有设置必填标记,地址为空也可以创建数据源
This commit is contained in:
xuwei-fit2cloud 2024-11-06 14:11:16 +08:00 committed by GitHub
commit 54058fe4c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -325,6 +325,16 @@ const setRules = () => {
}
]
}
if (form.value.type === 'es') {
configRules['configuration.url'] = [
{
required: true,
message: t('datasource.please_input_datasource_url'),
trigger: 'change'
}
]
}
rule.value = { ...cloneDeep(configRules), ...cloneDeep(defaultRule) }
}