一般我们配置路由的时候是import引入:

import log from '@/components/login';
{ path: '/login', component: log , hidden: true },

这样引入,所有的文件都会在页面加载的时候把所有的文件都加载出来,

采用amd方式的话会在页面加载的时候

vue中路由懒加载实现amd加载文件

 


 
                    
            
                

相关文章:

  • 2021-08-08
  • 2021-11-27
  • 2021-07-14
  • 2021-06-05
  • 2022-01-17
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-11-26
  • 2022-12-23
  • 2021-07-08
  • 2022-12-23
相关资源
相似解决方案