组件按需加载

This commit is contained in:
A1300399510
2023-07-13 17:34:25 +08:00
parent 348057a649
commit a626223e64
10 changed files with 97 additions and 110 deletions

View File

@@ -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