frontend-recharge-system/src/routes/index.ts

121 lines
2.5 KiB
TypeScript

import RoutePath from './routePath';
/*
文档
https://umijs.org/zh-CN/plugins/plugin-layout
*/
export default [
{
path: '/login',
layout: false,
component: './Login',
},
{
name: 'ALL',
path: RoutePath.ALL,
routes: [
{
path: RoutePath.ALL,
redirect: RoutePath.ALL_ADDRESS.LIST,
hideInMenu: true,
},
{
name: '地址管理',
path: RoutePath.ALL_ADDRESS.LIST,
component: './All/Address/List',
},
{
name: '地址详情',
path: RoutePath.ALL_ADDRESS.EDIT,
hideInMenu: true,
component: './All/Address/Edit',
},
{
name: '充值记录',
path: RoutePath.ALL_RECORD.LIST,
component: './All/Record/List',
},
{
name: '币种管理',
path: RoutePath.ALL_CURRENCY.LIST,
component: './Work/List',
},
{
name: '币种详情',
path: RoutePath.ALL_CURRENCY.EDIT,
hideInMenu: true,
component: './Work/Edit',
},
],
},
{
name: 'ETH',
path: RoutePath.ETH,
routes: [
{
path: RoutePath.ETH,
redirect: RoutePath.ETH_ADDRESS.LIST,
hideInMenu: true,
},
{
name: 'ETH地址管理',
path: RoutePath.ETH_ADDRESS.LIST,
component: './Eth/Address/List',
},
{
name: 'ETH地址详情',
path: RoutePath.ETH_ADDRESS.EDIT,
hideInMenu: true,
component: './Eth/Address/Edit',
},
{
name: 'ETH充值记录',
path: RoutePath.ETH_RECORD.LIST,
component: './Eth/Record/List',
},
{
name: 'ETH币种管理',
path: RoutePath.ETH_CURRENCY.LIST,
component: './Work/List',
},
{
name: 'ETH币种详情',
path: RoutePath.ETH_CURRENCY.EDIT,
hideInMenu: true,
component: './Work/Edit',
},
],
},
{
name: '设置',
path: RoutePath.SETTING,
routes: [
{
path: RoutePath.SETTING,
redirect: RoutePath.WORK.LIST,
hideInMenu: true,
},
{
name: '作品',
path: RoutePath.WORK.LIST,
component: './Work/List',
},
{
name: '作品详情',
path: RoutePath.WORK.EDIT,
hideInMenu: true,
component: './Work/Edit',
},
],
},
{
path: '/',
redirect: RoutePath.ETH_ADDRESS.LIST,
},
{
component: './404',
},
];