Vue的路由懒加载的方式

1.不使用路由懒加载:

import Home from '../components/Home'
import About from '../components/About'
import User from '../components/User'

2、使用路由懒加载:

//路由懒加载的方式加载组件
const Home = () =>import('../components/Home');
const About = ()=>import('../components/About');
const User = ()=>import('../components/User');

  

  

上一篇:第六課-Channel Study For TCP Listener & HTTP Listener & Web Service Listener About Response Handler


下一篇:变异的一生 | all about variant