diff --git a/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue b/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue index f6cc43cf62..abf67b673b 100644 --- a/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue +++ b/api-test/frontend/src/business/definition/components/complete/ApiTableList.vue @@ -209,6 +209,11 @@ export default { }, selectCountChange(value) { this.$emit('selectCountChange', value); + if (this.$refs.apitable) { + this.$emit('setSelectRow', this.$refs.apitable.getSelectRows()); + } else { + this.$emit('setSelectRow', new Set()); + } }, getColor(flag, method) { return this.methodColorMap.get(method); diff --git a/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue b/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue index 79bf57d604..1f20c64d22 100644 --- a/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue +++ b/framework/sdk-parent/frontend/src/components/environment/snippet/ext/ApiTableList.vue @@ -229,6 +229,11 @@ export default { methods: { selectCountChange(value) { this.$emit('selectCountChange', value) + if (this.$refs.apitable) { + this.$emit('setSelectRow', this.$refs.apitable.getSelectRows()); + } else { + this.$emit('setSelectRow', new Set()); + } }, getColor(flag, method) { return this.methodColorMap.get(method);