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 }