From aa28a8f765de1221aeb944e564bc4c4b0d30a3df Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Thu, 1 Aug 2024 14:57:01 +0800 Subject: [PATCH] fixed: Fixed the issue when adding --- src/components/Form/DataForm/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Form/DataForm/index.vue b/src/components/Form/DataForm/index.vue index d1e6e7c63a..4df88591f3 100644 --- a/src/components/Form/DataForm/index.vue +++ b/src/components/Form/DataForm/index.vue @@ -169,7 +169,8 @@ export default { form.validate(valid => { if (valid) { this.$emit('submit', form.getFormValue(), form, addContinue) - this.resetForm() + + if (addContinue) this.resetForm() } else { this.$emit('invalid', valid) scrollToError(form.$el)