[Routing] Added web hash history mode

This commit is contained in:
Matej Glasnák committed 2022-12-12 16:46:40 +01:00
1 parent 86ace38cb4
commit db35cff20d
1 file changed
+2 -2
+2 -2
View File
@@ -1,4 +1,4 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router' import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [ const routes: Array<RouteRecordRaw> = [
{ {
@@ -97,7 +97,7 @@ const routes: Array<RouteRecordRaw> = [
] ]
const router = createRouter({ const router = createRouter({
history: createWebHistory(process.env.BASE_URL), history: createWebHashHistory(process.env.BASE_URL),
routes routes
}) })