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
}
本文标题:vue 路由懒加载方式
本文链接:https://www.haomeiwen.com/subject/hqjhqctx.html
网友评论