diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/App.vue | 7 | ||||
-rw-r--r-- | src/router/index.js | 15 |
2 files changed, 18 insertions, 4 deletions
diff --git a/src/App.vue b/src/App.vue index 56674955..d5b49329 100644 --- a/src/App.vue +++ b/src/App.vue @@ -10,6 +10,11 @@ <script> export default { - name: "App" + name: "App", + watch: { + $route: function(to) { + document.title = to.meta.title || "Page is Missing Title"; + } + } }; </script> diff --git a/src/router/index.js b/src/router/index.js index 698aa700..560da89a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -16,19 +16,28 @@ const routes = [ children: [ { path: "", - component: () => import("@/views/Overview") + component: () => import("@/views/Overview"), + meta: { + title: "Server Overview" + } }, { path: "/access-control/local-user-management", name: "local-users", - component: () => import("@/views/AccessControl/LocalUserManagement") + component: () => import("@/views/AccessControl/LocalUserManagement"), + meta: { + title: "Manage Local Users" + } } ] }, { path: "/login", name: "login", - component: () => import("@/views/Login") + component: () => import("@/views/Login"), + meta: { + title: "Login" + } } ]; |