diff --git a/ui/src/views/compute/AssignInstance.vue b/ui/src/views/compute/AssignInstance.vue index ed3efbc8338..9726dc21577 100644 --- a/ui/src/views/compute/AssignInstance.vue +++ b/ui/src/views/compute/AssignInstance.vue @@ -306,7 +306,11 @@ export default { message: this.$t('label.loadbalancerinstance') }) this.$emit('close-action') - this.parentFetchData() + if (this.$store.getters.project?.id) { + this.$router.push({ path: '/vm' }) + } else { + this.parentFetchData() + } }).catch(error => { this.$notifyError(error) }).finally(() => {