Commit e4b95bbd by Kyle_Li

修复标签保存失效

parent 7ccbcd6d
......@@ -104,6 +104,7 @@ export default {
},
methods: {
closePop() {
this.$refs.ruleForm.resetFields();
this.$emit('update:showPop', false);
},
// 保存标签基本信息
......@@ -111,7 +112,11 @@ export default {
if (this.ruleForm.pending) return;
this.ruleForm.pending = true;
this.$refs.ruleForm.validate((valid) => {
if (valid) this.saveApi();
if (valid) {
this.saveApi();
} else {
this.ruleForm.pending = false;
}
});
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment