fuliqi
2024-01-24 29c1e7eb5ac16e90d8991a86c1c071bc312ec8d9
1
2
3
4
5
6
7
8
9
10
import router from './index'
router.beforeEach(async (to, from, next) => {
  // todo
  document.title = to.meta.title
  next()
})
 
router.afterEach((to, from) => {
  // todo
})