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:
Cody Jackson 2024-05-31 14:52:31 -07:00
parent 7d69ff2b55
commit ae9eb1ed08
1 changed files with 2 additions and 6 deletions

View File

@ -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