diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue index 39d6652516..5b14f5db00 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportNavigationBar.vue @@ -1,15 +1,15 @@ @@ -22,6 +22,7 @@ export default { data() { return { asideHidden: true, + activeName: "1", data: [ { link: 'overview', @@ -45,6 +46,12 @@ export default { } ] } + }, + watch: { + activeName() { + let url = new URL(window.location.href); + window.location.href = url.origin + '#' + this.activeName; + } } } @@ -52,20 +59,22 @@ export default { diff --git a/frontend/src/business/components/track/report/components/TestPlanDbReport.vue b/frontend/src/business/components/track/report/components/TestPlanDbReport.vue index 5165725bcd..be077b4d47 100644 --- a/frontend/src/business/components/track/report/components/TestPlanDbReport.vue +++ b/frontend/src/business/components/track/report/components/TestPlanDbReport.vue @@ -7,21 +7,22 @@ ref="drawer" v-loading="result.loading">