added mode: history to get rid of the # in the routes

This commit is contained in:
Moriz Wahl 2021-04-12 21:03:39 +02:00
parent eff9e6b787
commit f79767a9a8

View File

@ -8,6 +8,7 @@ Vue.use(VueRouter)
const router = new VueRouter({
routes, // short for routes: routes
linkActiveClass: 'active',
mode: 'history',
scrollBehavior: (to, from, savedPosition) => {
if (savedPosition) {
return savedPosition