Switch to WebHashHistory for easier deployment
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
||||||
|
|
||||||
import App from './components/App.vue'
|
import App from './components/App.vue'
|
||||||
|
|
||||||
import routes from './components/routes/routes.ts'
|
import routes from './components/routes/routes.ts'
|
||||||
const history = createWebHistory()
|
const history = createWebHashHistory()
|
||||||
const router = createRouter({ history, routes })
|
const router = createRouter({ history, routes })
|
||||||
router.afterEach((to, from) => { document.title = to.meta.title })
|
router.afterEach((to, from) => { document.title = to.meta.title })
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user