组件按需加载
This commit is contained in:
@@ -51,14 +51,10 @@ const router = createRouter({
|
||||
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
console.log(to);
|
||||
next()
|
||||
|
||||
let meta = to['meta'] || {}
|
||||
let title = meta['title']
|
||||
console.log("title", title);
|
||||
if (title) setSeoTitle(title)
|
||||
|
||||
})
|
||||
|
||||
export default router
|
||||
|
||||
Reference in New Issue
Block a user