feat: await validate

This commit is contained in:
opbnq-q
2025-03-10 07:37:40 -07:00
parent ccde027c83
commit d7535622e4
2 changed files with 4 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ const emits = defineEmits<{
async function handleSave() {
const mode = props.updateMode ? 'update' : 'create';
const result = props.validate(createItem.value as T, mode);
const result = await props.validate(createItem.value as T, mode);
if (result.status === 'error') {
errorStore.summon(result.message);
return;