switch router to history mode

This commit is contained in:
Hans Pagel
2018-09-03 14:00:18 +02:00
parent 33575c0856
commit 0c4db7d1b5
2 changed files with 5 additions and 0 deletions

View File

@@ -88,6 +88,7 @@ const routes = [
const router = new VueRouter({ const router = new VueRouter({
routes, routes,
mode: 'history',
linkActiveClass: 'is-active', linkActiveClass: 'is-active',
linkExactActiveClass: 'is-exact-active', linkExactActiveClass: 'is-exact-active',
}) })

4
netlify.toml Normal file
View File

@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200