forked from github/dataease
Merge pull request #13162 from dataease/pr@dev-v2_dzz
fix(数据源): 创建Elasticsearch数据源,地址栏没有设置必填标记,地址为空也可以创建数据源
This commit is contained in:
commit
54058fe4c9
@ -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) }
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user