Browse Source

fix: missing await in department form(#5967)

pull/5977/head
zhouda1fu 10 months ago
committed by GitHub
parent
commit
5252480b09
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      playground/src/views/system/dept/modules/form.vue

2
playground/src/views/system/dept/modules/form.vue

@ -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)

Loading…
Cancel
Save