diff --git a/frontend/src/business/components/api/head/ApiHeaderMenus.vue b/frontend/src/business/components/api/head/ApiHeaderMenus.vue
index 7246c6d84f..2fdd1e8bd3 100644
--- a/frontend/src/business/components/api/head/ApiHeaderMenus.vue
+++ b/frontend/src/business/components/api/head/ApiHeaderMenus.vue
@@ -11,7 +11,7 @@
{{$t('commons.project')}}
-
+
@@ -20,7 +20,7 @@
{{$t('commons.test')}}
-
+
@@ -29,7 +29,7 @@
{{$t('commons.report')}}
-
+
diff --git a/frontend/src/business/components/common/head/ShowAll.vue b/frontend/src/business/components/common/head/ShowAll.vue
index 355c167514..09f4ebec6d 100644
--- a/frontend/src/business/components/common/head/ShowAll.vue
+++ b/frontend/src/business/components/common/head/ShowAll.vue
@@ -1,5 +1,5 @@
-
+
{{$t('commons.show_all')}}
@@ -10,6 +10,12 @@
name: "MsShowAll",
props: {
index: String
+ },
+ methods: {
+ changeRoute() {
+ // 解决在列表页面点击 显示全部 无效的问题(点击显示全部后改变路由)
+ this.$router.push(this.index + '/all');
+ }
}
}
diff --git a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue
index cb0fc1c071..924a4cac97 100644
--- a/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue
+++ b/frontend/src/business/components/performance/head/PerformanceHeaderMenus.vue
@@ -12,7 +12,7 @@
{{$t('commons.project')}}
-
+
@@ -21,7 +21,7 @@
{{$t('commons.test')}}
-
+
@@ -30,7 +30,7 @@
{{$t('commons.report')}}
-
+
diff --git a/frontend/src/business/components/performance/report/PerformanceTestReport.vue b/frontend/src/business/components/performance/report/PerformanceTestReport.vue
index fce3f24486..c9d977ead0 100644
--- a/frontend/src/business/components/performance/report/PerformanceTestReport.vue
+++ b/frontend/src/business/components/performance/report/PerformanceTestReport.vue
@@ -125,6 +125,12 @@
],
}
},
+ watch: {
+ '$route'(to) {
+ this.projectId = to.params.projectId;
+ this.initTableData();
+ }
+ },
methods: {
initTableData(combine) {
let condition = combine ? {combine: combine} : this.condition;
diff --git a/frontend/src/business/components/project/MsProject.vue b/frontend/src/business/components/project/MsProject.vue
index 3b29659e73..607914efca 100644
--- a/frontend/src/business/components/project/MsProject.vue
+++ b/frontend/src/business/components/project/MsProject.vue
@@ -136,6 +136,9 @@
to.path.split('/')[3] === 'create') {
this.create();
this.$router.push('/' + this.baseUrl + '/project/all');
+ } else if (this.$route.path.split('/')[2] === 'project' &&
+ to.path.split('/')[3] === 'all') {
+ this.list();
}
}
},
diff --git a/frontend/src/business/components/track/head/TrackHeaderMenus.vue b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
index 9e351fb219..627bdbfe6d 100644
--- a/frontend/src/business/components/track/head/TrackHeaderMenus.vue
+++ b/frontend/src/business/components/track/head/TrackHeaderMenus.vue
@@ -13,7 +13,7 @@
{{$t('commons.project')}}
-
+
@@ -22,7 +22,7 @@
{{$t('test_track.case.test_case')}}
-
+
@@ -32,7 +32,7 @@
{{$t('test_track.plan.test_plan')}}
-
+