This commit is contained in:
2020-04-10 16:45:59 +00:00
parent 70302d0261
commit 94a0fc2ebc
4 changed files with 22 additions and 16 deletions

View File

@@ -35,10 +35,10 @@ const scrollBehavior = function(to, from, savedPosition) {
}
// eslint-disable-next-line
return new Promise((resolve) => {
return new Promise(resolve => {
// check if any matched route config has meta that requires scrolling to top
// eslint-disable-next-line
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;
@@ -449,7 +449,7 @@ export default new Router({
import(/* webpackChunkName: "ay-common" */ "./views/ay-review.vue")
},
{
path: "/history/:ayatype/:recordid",
path: "/history/:ayatype/:recordid/:useractions?",
name: "ay-history",
component: () =>
import(/* webpackChunkName: "ay-common" */ "./views/ay-history.vue")