CEES-H5-New/src/router/index.ts

14 lines
303 B
TypeScript
Raw Normal View History

2025-03-19 13:15:34 +08:00
import { createRouter, createWebHistory, Router } from 'vue-router';
import routes from './routes';
const router: Router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: routes,
});
router.beforeEach(async (_to, _from, next) => {
next();
});
export default router;