mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-25 08:06:30 +08:00
fix: missing await in department form(#5967)
This commit is contained in:
@@ -37,7 +37,7 @@ const [Modal, modalApi] = useVbenModal({
|
||||
const { valid } = await formApi.validate();
|
||||
if (valid) {
|
||||
modalApi.lock();
|
||||
const data = formApi.getValues();
|
||||
const data = await formApi.getValues();
|
||||
try {
|
||||
await (formData.value?.id
|
||||
? updateDept(formData.value.id, data)
|
||||
|
Reference in New Issue
Block a user