mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-14 06:09:10 +00:00
fixed: Fixed the issue when adding
This commit is contained in:
@@ -169,7 +169,8 @@ export default {
|
|||||||
form.validate(valid => {
|
form.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$emit('submit', form.getFormValue(), form, addContinue)
|
this.$emit('submit', form.getFormValue(), form, addContinue)
|
||||||
this.resetForm()
|
|
||||||
|
if (addContinue) this.resetForm()
|
||||||
} else {
|
} else {
|
||||||
this.$emit('invalid', valid)
|
this.$emit('invalid', valid)
|
||||||
scrollToError(form.$el)
|
scrollToError(form.$el)
|
||||||
|
Reference in New Issue
Block a user