修改bug

This commit is contained in:
yangjun 2026-03-25 09:20:41 +08:00
parent 474de2892a
commit 6150f127ca
2 changed files with 10 additions and 1 deletions

View File

@ -198,6 +198,7 @@
if(formData.status == 'modifyFail' && !formData.applyContent){
createMessage.warning('请填写驳回原因');
confirmLoading.value = false;
return;
}

View File

@ -554,7 +554,15 @@ async function submitForm() {
if (errorFields) {
const firstField = errorFields[0];
if (firstField) {
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
// formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
//
// const formElement = formRef.value.$el;
// if (formElement) {
// formElement.scrollIntoView({
// behavior: 'smooth',
// block: 'end' //
// });
// }
}
}
return Promise.reject(errorFields);