From cdf01879ec3c0f05de2d711776a2570b80efb507 Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 26 Jul 2023 18:29:45 +0800 Subject: [PATCH] ui: fix 404 error when list volumes of system vms (#7772) This PR fixes #7662 --- ui/src/views/AutogenView.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index cf552e2ede4..4bd291b97a1 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -769,6 +769,10 @@ export default { this.dataView = false } + if (this.dataView && ['Admin'].includes(this.$store.getters.userInfo.roletype) && this.routeName === 'volume') { + params.listsystemvms = true + } + if ('listview' in this.$refs && this.$refs.listview) { this.$refs.listview.resetSelection() }