路由的懒加载:就是需要的时候在加载
const Home = () => import("../components/Home.vue")
const HomeNews = () => import('../components/HomeNews.vue')
const HomeMessage = () => import('../components/HomeMessage.vue')
const About = () => import("../components/About.vue")
const User = () => import("../components/User.vue")
这种写法就能实现路由的懒加载








网友评论