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

17 lines
389 B
TypeScript

import { createRouter, createWebHashHistory, Router } from 'vue-router';
import {getAccessTime} from '@/api/index';
import routes from './routes';
import {showDialog } from 'Vant';
const router: Router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: routes,
});
router.beforeEach(async (_to, _from, next) => {
next();
});
export default router;