mirror of
https://github.com/zclzone/vue-naive-admin.git
synced 2026-01-23 08:00:22 +08:00
fix: 表单校验失败会关闭弹窗问题
This commit is contained in:
@@ -57,7 +57,7 @@ export const useCrud = ({ name, initForm = {}, doCreate, doDelete, doUpdate, ref
|
||||
if (!action && !['edit', 'add'].includes(modalAction.value)) {
|
||||
return false
|
||||
}
|
||||
if (!(await validation())) return false
|
||||
await validation()
|
||||
const actions = {
|
||||
add: {
|
||||
api: () => doCreate(modalForm.value),
|
||||
|
||||
Reference in New Issue
Block a user