diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 4bd14eef9a2..00502394c5d 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -313,7 +313,10 @@ export default { }, methods: { fetchData () { - this.routeName = this.$route.name + if (this.routeName !== this.$route.name) { + this.routeName = this.$route.name + this.items = [] + } if (!this.routeName) { this.routeName = this.$route.matched[this.$route.matched.length - 1].parent.name } @@ -321,7 +324,6 @@ export default { this.actions = [] this.columns = [] this.columnKeys = [] - this.items = [] this.treeData = [] this.treeSelected = {} var params = { listall: true }