diff --git a/frontend/src/business/components/project/template/CustomFieldRelateList.vue b/frontend/src/business/components/project/template/CustomFieldRelateList.vue index 865f80ff22..9ce93ae224 100644 --- a/frontend/src/business/components/project/template/CustomFieldRelateList.vue +++ b/frontend/src/business/components/project/template/CustomFieldRelateList.vue @@ -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; }, }