We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6efff8b commit 23860b7Copy full SHA for 23860b7
src/router/index.ts
@@ -30,6 +30,7 @@ router.beforeEach((to, from, next) => {
30
31
// If a route with a title was found, set the document (page) title to that value.
32
if(nearestWithTitle) document.title = nearestWithTitle.meta.title;
33
+ if(!nearestWithTitle) document.title = 'Vue Zephyr'; // Fall back if there is no title set
34
35
// Remove any stale meta tags from the document using the key attribute we set below.
36
Array.from(document.querySelectorAll('[data-vue-router-controlled]')).map(el => el?.parentNode?.removeChild(el));
0 commit comments