From 147ea06af33217376ae7faad2bfd639d11a13bca Mon Sep 17 00:00:00 2001 From: Wei Zhou Date: Wed, 8 Feb 2023 15:10:32 +0100 Subject: [PATCH] UI: fix security group lists in project view (#7164) --- ui/src/views/compute/wizard/SecurityGroupSelection.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/views/compute/wizard/SecurityGroupSelection.vue b/ui/src/views/compute/wizard/SecurityGroupSelection.vue index 7d2a90f31fb..51f96a569ad 100644 --- a/ui/src/views/compute/wizard/SecurityGroupSelection.vue +++ b/ui/src/views/compute/wizard/SecurityGroupSelection.vue @@ -140,8 +140,9 @@ export default { methods: { fetchData () { const params = { - domainid: this.$store.getters.userInfo.domainid, - account: this.$store.getters.userInfo.account, + projectid: this.$store.getters.project ? this.$store.getters.project.id : null, + domainid: this.$store.getters.project && this.$store.getters.project.id ? null : this.$store.getters.userInfo.domainid, + account: this.$store.getters.project && this.$store.getters.project.id ? null : this.$store.getters.userInfo.account, page: this.page, pageSize: this.pageSize }