admin-router
自动生成路由文件插件
路由:
/system/user
容器目录:
├── Card
│ └── Product
│ └── index.tsx
└── System
├── EditPassword
│ ├── index.tsx
│ └── model.ts
├── index.tsx
└── model.ts
路由文件:
module.exports = [
{
'path': '/card/product',
'components': {
'Product': () => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/Card/Product'),
},
'models': {
'Product': [
require('/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/models/common.ts'),
],
},
},
{
'path': '/system',
'components': {
'System': () => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/System/index'),
'EditPassword': () => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/System/EditPassword'),
},
'models': {
'System': [
require('/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/models/common.ts'),,
() => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/System/model'),
],
'EditPassword': [
require('/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/models/common.ts'),,
() => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/System/model'),
require('/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/models/common.ts'),,
() => import (
'/Users/fengzhihao/Projects/skywrath-mage/fixtures/admin/src/containers/System/EditPassword/model'),
],
},
},
];