vue 路由懒加载方式
2019-06-19 本文已影响0人
Yao请输入昵称
1.更改 import register from '../page/login/register'引入方式
更改为 const register = resolve =>require(['../page/login/register'],resolve)
2.
{
path:'/register',
name:'register',
component:register
}
1.更改 import register from '../page/login/register'引入方式
更改为 const register = resolve =>require(['../page/login/register'],resolve)
2.
{
path:'/register',
name:'register',
component:register
}