Skip to content

jonny-gg/router-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

统一 router 配置渲染组件(基于routerV4x版本)

何时使用

快速配置路由渲染组件的情况

安装方法

1. 下载 npm 包

yarn add zeus-router-config

2. 在 bsy.json 中登记

{
  "options": {
    "esModule": [
      "zeus-router-config"
    ]
  }
}

api

参数 是否必填 类型
config array

示例格式

// BasicLayout 是在compnents的文件里面的基础布局组件
[
    {
    path: '/url1',
    layout: BasicLayout,
    component: UrlComponent1,
    },
    {
      path: '/url2',
      layout: BasicLayout,
      component: UrlComponent2,
    }
    ]

About

统一路由组件

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published