diff --git a/src/router.js b/src/router.js index 84fa4372b7791c8a5b45e88e2ba63eea67be63e4..e053ad40d9bf43e0fc1b7c3146332390600ae829 100644 --- a/src/router.js +++ b/src/router.js @@ -20,7 +20,7 @@ Vue.use(VueRouter) const routes = [ { - path: window.location.pathname, + path: '/', name: 'Home', component: Home, meta: { @@ -118,6 +118,7 @@ const routes = [ const router = new VueRouter({ mode: 'history', + base: window.location.pathname, routes, scrollBehavior(to, from, savedPosition) { return { x: 0, y: 0 }