- + - + - + @@ -25,7 +25,21 @@ import TestCaseSideList from "./components/TestCaseSideList"; export default { name: "TrackHome", - components: {TestCaseSideList, RelatedTestPlanList} + components: {TestCaseSideList, RelatedTestPlanList}, + watch: { + '$route'(to,from) { + if (to.path.indexOf('/track/home') > -1) { + this.innitData(); + } + } + }, + methods: { + innitData() { + this.$refs.relatedTestPlanList.initTableData(); + this.$refs.testCaseRecentList.initTableData(); + this.$refs.testCasePendingList.initTableData(); + } + } } diff --git a/frontend/src/business/components/track/home/components/RelatedTestPlanList.vue b/frontend/src/business/components/track/home/components/RelatedTestPlanList.vue index 7d732e5366caf7ed757f5a116ce0c54b47e07742..c4997e1bcfd7ed0a3e2a510c0b28394e835d2c87 100644 --- a/frontend/src/business/components/track/home/components/RelatedTestPlanList.vue +++ b/frontend/src/business/components/track/home/components/RelatedTestPlanList.vue @@ -1,9 +1,9 @@