fix: 优化容器创建提示信息 (#6925)

This commit is contained in:
ssongliu 2024-11-01 22:27:10 +08:00 committed by GitHub
parent 24c063b106
commit f7b4c8cd28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -483,7 +483,11 @@ const onSubmit = async (formEl: FormInstance | undefined) => {
if (!formEl) return;
formEl.validate(async (valid) => {
if (!valid) return;
dialogVisible.value = true;
if (dialogData.value.title === 'create') {
submit();
} else {
dialogVisible.value = true;
}
});
};