14 lines
319 B
TypeScript
Raw Normal View History

import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
2025-10-21 01:14:13 +07:00
import { routes } from './route'
const router = createRouter({
history: import.meta.env.DEV ? createWebHistory() : createWebHashHistory(),
2025-10-21 01:14:13 +07:00
routes,
})
router.beforeEach((to, from, next) => {
next()
})
export default router