Skip to content

Commit 9acba90

Browse files
authored
Fix 404 when moving a VM to out of a project (apache#8650)
1 parent e0731c5 commit 9acba90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/src/views/compute/AssignInstance.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,11 @@ export default {
306306
message: this.$t('label.loadbalancerinstance')
307307
})
308308
this.$emit('close-action')
309-
this.parentFetchData()
309+
if (this.$store.getters.project?.id) {
310+
this.$router.push({ path: '/vm' })
311+
} else {
312+
this.parentFetchData()
313+
}
310314
}).catch(error => {
311315
this.$notifyError(error)
312316
}).finally(() => {

0 commit comments

Comments
 (0)