diff --git a/frontend/src/business/components/api/automation/report/ApiReportList.vue b/frontend/src/business/components/api/automation/report/ApiReportList.vue index f7f0b424d2..a675cb389b 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportList.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportList.vue @@ -181,8 +181,6 @@ export default { this.result = this.$post("/api/scenario/report/delete", {id: report.id}, () => { this.$success(this.$t('commons.delete_success')); this.search(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }); } } @@ -239,8 +237,6 @@ export default { this.selectRows.clear(); this.$success(this.$t('commons.delete_success')); this.search(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }); } } diff --git a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue index ba37e9a16c..9140cebb44 100644 --- a/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue +++ b/frontend/src/business/components/api/automation/scenario/testplan/TestPlanList.vue @@ -305,8 +305,6 @@ export default { this.$post('/test/plan/delete/' + testPlanId, {}, () => { this.initTableData(); this.$success(this.$t('commons.delete_success')); - // 发送广播,刷新 head 上的最新列表 - TrackEvent.$emit(LIST_CHANGE); }); }, intoPlan(row, event, column) { diff --git a/frontend/src/business/components/api/report/ApiReportList.vue b/frontend/src/business/components/api/report/ApiReportList.vue index 11f4719be4..2d8489c5ab 100644 --- a/frontend/src/business/components/api/report/ApiReportList.vue +++ b/frontend/src/business/components/api/report/ApiReportList.vue @@ -145,8 +145,6 @@ export default { this.result = this.$post("/api/report/delete", {id: report.id}, () => { this.$success(this.$t('commons.delete_success')); this.search(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }); } } @@ -196,8 +194,6 @@ export default { this.selectRows.clear(); this.$success(this.$t('commons.delete_success')); this.search(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }); } } diff --git a/frontend/src/business/components/api/test/ApiTestConfig.vue b/frontend/src/business/components/api/test/ApiTestConfig.vue index 3a64699571..01445b0fc7 100644 --- a/frontend/src/business/components/api/test/ApiTestConfig.vue +++ b/frontend/src/business/components/api/test/ApiTestConfig.vue @@ -217,8 +217,6 @@ export default { path: '/api/test/edit?id=' + this.test.id }) } - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }) }, runTest() { @@ -238,8 +236,6 @@ export default { this.save(() => { this.$success(this.$t('commons.save_success')); this.runTest(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }) }, getBodyUploadFiles() { diff --git a/frontend/src/business/components/api/test/ApiTestList.vue b/frontend/src/business/components/api/test/ApiTestList.vue index 28c7f737c1..73e9ac9bc2 100644 --- a/frontend/src/business/components/api/test/ApiTestList.vue +++ b/frontend/src/business/components/api/test/ApiTestList.vue @@ -178,8 +178,6 @@ export default { this.result = this.$post("/api/delete", {id: test.id}, () => { this.$success(this.$t('commons.delete_success')); this.search(); - // 发送广播,刷新 head 上的最新列表 - ApiEvent.$emit(LIST_CHANGE); }); } } diff --git a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue index 8660fde7c5..0e1f64af10 100644 --- a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue +++ b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue @@ -11,7 +11,7 @@ {{ $t('commons.test') }} - {{ $t('commons.test') }} + {{ $t('commons.report') }} diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index 7a223f4f44..3600c0834c 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -264,8 +264,6 @@ export default { this.result = this.$get('/performance/stop/' + this.reportId + '/' + forceStop, () => { this.$success(this.$t('report.test_stop_success')); if (forceStop) { - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); this.$router.push('/performance/report/all'); this.websocket.close(); } else { diff --git a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue index 34b9df2cbe..7a26aa0b66 100644 --- a/frontend/src/business/components/performance/report/PerformanceTestReportList.vue +++ b/frontend/src/business/components/performance/report/PerformanceTestReportList.vue @@ -313,16 +313,12 @@ export default { _handleDeleteNoMsg(report) { this.result = this.$post(this.deletePath + report.id, {}, () => { this.initTableData(); - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); }); }, _handleDelete(report) { this.result = this.$post(this.deletePath + report.id, {}, () => { this.$success(this.$t('commons.delete_success')); this.initTableData(); - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); }); }, sort(column) { diff --git a/frontend/src/business/components/performance/test/EditPerformanceTest.vue b/frontend/src/business/components/performance/test/EditPerformanceTest.vue index e1fee3e851..075d089f45 100644 --- a/frontend/src/business/components/performance/test/EditPerformanceTest.vue +++ b/frontend/src/business/components/performance/test/EditPerformanceTest.vue @@ -180,8 +180,6 @@ export default { this.$success(this.$t('commons.save_success')); this.$refs.advancedConfig.cancelAllEdit(); this.$router.push({path: '/performance/test/all'}); - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); }); }, saveAndRun() { @@ -197,8 +195,6 @@ export default { this.result = this.$post(this.runPath, {id: this.test.id, triggerMode: 'MANUAL'}, (response) => { let reportId = response.data; this.$router.push({path: '/performance/report/view/' + reportId}); - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); }); }); }, diff --git a/frontend/src/business/components/performance/test/PerformanceTestList.vue b/frontend/src/business/components/performance/test/PerformanceTestList.vue index 3932626f73..a602229956 100644 --- a/frontend/src/business/components/performance/test/PerformanceTestList.vue +++ b/frontend/src/business/components/performance/test/PerformanceTestList.vue @@ -230,8 +230,6 @@ export default { this.result = this.$post(this.deletePath, data, () => { this.$success(this.$t('commons.delete_success')); this.initTableData(); - // 发送广播,刷新 head 上的最新列表 - PerformanceEvent.$emit(LIST_CHANGE); }); }, sort(column) { diff --git a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue index 8680d4a094..91319cac1b 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanEdit.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanEdit.vue @@ -206,8 +206,6 @@ export default { this.$success(this.$t('commons.save_success')); this.dialogFormVisible = false; this.$router.push('/track/plan/view/' + response.data); - // 发送广播,刷新 head 上的最新列表 - TrackEvent.$emit(LIST_CHANGE); }); } else { return false; @@ -233,8 +231,6 @@ export default { this.$success(this.$t('commons.save_success')); this.dialogFormVisible = false; this.$emit("refresh"); - // 发送广播,刷新 head 上的最新列表 - TrackEvent.$emit(LIST_CHANGE); }); } else { return false; diff --git a/frontend/src/business/components/track/plan/components/TestPlanList.vue b/frontend/src/business/components/track/plan/components/TestPlanList.vue index b267025bce..61365a1b24 100644 --- a/frontend/src/business/components/track/plan/components/TestPlanList.vue +++ b/frontend/src/business/components/track/plan/components/TestPlanList.vue @@ -399,8 +399,6 @@ export default { this.$post('/test/plan/delete/' + testPlanId, {}, () => { this.initTableData(); this.$success(this.$t('commons.delete_success')); - // 发送广播,刷新 head 上的最新列表 - TrackEvent.$emit(LIST_CHANGE); }); }, intoPlan(row, event, column) {