This commit is contained in:
2020-04-05 23:40:56 +00:00
parent 41ba8c417c
commit 4d92e0da20
3 changed files with 18 additions and 2 deletions

View File

@@ -34,9 +34,9 @@ const scrollBehavior = function(to, from, savedPosition) {
return false;
}
return new Promise(resolve => {
return new Promise((resolve) => {
// check if any matched route config has meta that requires scrolling to top
if (to.matched.some(m => m.meta.scrollToTop)) {
if (to.matched.some((m) => m.meta.scrollToTop)) {
// coords will be used if no selector is provided,
// or if the selector didn't match any element.
position.x = 0;
@@ -340,6 +340,13 @@ export default new Router({
import(/* webpackChunkName: "ops" */ "./views/ops-backup.vue")
},
{
path: "/ops-server-state",
name: "ops-server-state",
component: () =>
import(/* webpackChunkName: "ops" */ "./views/ops-server-state.vue")
},
{
path: "/ops-jobs",
name: "ops-jobs",