fix(项目设置): 模版添加自定义字段会出现未选中的字段

--bug=1013773 --user=李玉号 【项目设置】github#14211 模版管理 添加自定义字段 多次点击 确定按钮
出现添加未选中的字段 https://www.tapd.cn/55049933/s/1174656

Closes #14211
This commit is contained in:
shiziyuan9527 2022-06-07 15:42:44 +08:00 committed by f2c-ci-robot[bot]
parent bd11fefdde
commit 4e9d9630f4
1 changed files with 3 additions and 1 deletions

View File

@ -175,7 +175,9 @@ export default {
this.visible = true;
},
save() {
this.$emit('save', this.$refs.table.selectIds);
if (this.$refs.table.selectIds.length > 0) {
this.$emit('save', this.$refs.table.selectIds);
}
this.visible = false;
},
}