From 296e99a4f5b457595117e88ff1a920be2a47a95d Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 26 Jul 2023 08:59:30 +0200 Subject: [PATCH] UI: fix 404 error when list volumes of system vms --- 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 cf552e2ede40..4bd291b97a17 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() }