index-teacher.ts 335 B

12345678910111213
  1. import { createRouter, createWebHashHistory, Router } from 'vue-router';
  2. import routes from './routes-teacher';
  3. const router: Router = createRouter({
  4. history: createWebHashHistory(),
  5. routes
  6. });
  7. router.beforeEach((to, from, next) => {
  8. document.title = (to.meta.title || '酷乐秀') as any;
  9. next();
  10. });
  11. export default router;