Switch to WebHashHistory for easier deployment

This commit is contained in:
2023-04-30 22:54:56 +02:00
parent 66a9d77c07
commit f630911a4f

View File

@@ -1,10 +1,10 @@
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import { createRouter, createWebHashHistory } from 'vue-router'
import App from './components/App.vue'
import routes from './components/routes/routes.ts'
const history = createWebHistory()
const history = createWebHashHistory()
const router = createRouter({ history, routes })
router.afterEach((to, from) => { document.title = to.meta.title })