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
|
||||
router.beforeEach(render.bind(vueApp));
|
||||
router.beforeEach((from, to, next) => {
|
||||
if (from?.name !== to?.name) {
|
||||
updatePageTitle(getVendor());
|
||||
}
|
||||
|
||||
next();
|
||||
router.afterEach((from, to) => {
|
||||
updatePageTitle(getVendor());
|
||||
});
|
||||
|
||||
// First render on client-side
|
||||
|
|
|
|||
Loading…
Reference in New Issue