mirror of https://github.com/rancher/dashboard.git
Fixing a race condition with how we update/reset the title to "Rancher" if a page doesn't set the title.
This commit is contained in:
parent
7d69ff2b55
commit
ae9eb1ed08
|
|
@ -264,12 +264,8 @@ export async function mountApp(appPartials, VueClass) {
|
||||||
|
|
||||||
// Add beforeEach router hooks
|
// Add beforeEach router hooks
|
||||||
router.beforeEach(render.bind(vueApp));
|
router.beforeEach(render.bind(vueApp));
|
||||||
router.beforeEach((from, to, next) => {
|
router.afterEach((from, to) => {
|
||||||
if (from?.name !== to?.name) {
|
updatePageTitle(getVendor());
|
||||||
updatePageTitle(getVendor());
|
|
||||||
}
|
|
||||||
|
|
||||||
next();
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// First render on client-side
|
// First render on client-side
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue