统一 router 配置渲染组件(基于routerV4x版本)
快速配置路由渲染组件的情况
yarn add zeus-router-config
{
"options": {
"esModule": [
"zeus-router-config"
]
}
}
参数 | 是否必填 | 类型 |
---|---|---|
config | 是 | array |
// BasicLayout 是在compnents的文件里面的基础布局组件
[
{
path: '/url1',
layout: BasicLayout,
component: UrlComponent1,
},
{
path: '/url2',
layout: BasicLayout,
component: UrlComponent2,
}
]