diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index 9b47c97278..faedc0c205 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -220,14 +220,14 @@ if (tab.name === 'add') { this.handleTabsEdit(this.$t('api_test.definition.request.fast_debug'), "debug"); } - if(this.$refs.apiConfig) { + if (this.$refs.apiConfig) { this.$refs.apiConfig.forEach(item => { console.log(item); item.removeListener(); }); // 删除所有tab的 ctrl + s 监听 let tabs = this.apiTabs; let index = tabs.findIndex(item => item.name === tab.name); // 找到当前选中tab的index - if(index != -1) { + if (index != -1) { this.$refs.apiConfig[index - 1].addListener(); // 为选中tab添加 ctrl + s 监听(index-1的原因是要除去第一个固有tab) } } @@ -336,7 +336,11 @@ } else { let condition = {}; let url = "/api/definition/list/all"; - condition.filters = ["Prepare", "Underway", "Completed"]; + condition.filters = new Map( + [ + ["status", ["Prepare", "Underway", "Completed"]], + ] + ); condition.projectId = getCurrentProjectID(); this.$post(url, condition, response => { obj.data = response.data; diff --git a/frontend/src/business/components/api/test/Upgrade.vue b/frontend/src/business/components/api/test/Upgrade.vue index ecc125082c..354b7c785d 100644 --- a/frontend/src/business/components/api/test/Upgrade.vue +++ b/frontend/src/business/components/api/test/Upgrade.vue @@ -11,6 +11,7 @@