Fix the refresh issue when add ns

https://github.com/rancher/rancher/issues/18809
This commit is contained in:
loganhz 2019-03-12 08:28:28 +08:00
parent 6c4a4d070d
commit 4977c344aa
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ export default Controller.extend(NewOrEdit, {
let backTo = get(this, 'session').get(C.SESSION.BACK_TO)
if (backTo) {
window.location.href = backTo;
this.transitionToRoute('authenticated.project.ns.index', get(this, 'addTo'));
} else {
this.transitionToRoute('authenticated.cluster.projects.index');
}