Browse Source

bug:这个存在,导致页面中控制loading无效--如发料申请新增

hella_online_20240829
wangyufei 3 months ago
parent
commit
404cafaa3a
  1. 16
      src/components/BasicForm/src/BasicForm.vue

16
src/components/BasicForm/src/BasicForm.vue

@ -706,20 +706,20 @@ const submitForm = async () => {
return return
} }
// //
try { // try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
emit('submitForm', formType.value, data) emit('submitForm', formType.value, data)
} finally { // } finally {
formLoading.value = false // formLoading.value = false
} // }
} else { } else {
// //
try { // try {
const data = unref(formRef)?.formModel const data = unref(formRef)?.formModel
emit('submitForm', formType.value, data) emit('submitForm', formType.value, data)
} finally { // } finally {
formLoading.value = false // formLoading.value = false
} // }
} }
} else { } else {
// //

Loading…
Cancel
Save