1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +08:00

fix: 表单校验失败会关闭弹窗问题

This commit is contained in:
zclzone
2023-12-14 17:01:53 +08:00
parent c8616ebbf3
commit 144845073a
4 changed files with 7 additions and 12 deletions

View File

@@ -177,7 +177,7 @@ function handleOpen(options = {}) {
}
async function onSave() {
if (!(await validation())) return
await validation()
okLoading.value = true
try {
if (!modalForm.value.parentId) modalForm.value.parentId = null