ui: fix 404 error when list volumes of system vms (#7772)

This PR fixes #7662
This commit is contained in:
Wei Zhou 2023-07-26 18:29:45 +08:00 committed by GitHub
parent 3f2449f3d8
commit cdf01879ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
}