Commit e9d9ab12 authored by LeeJiancong's avatar LeeJiancong

修改路由配置

parent 23f13226
/*
* @Author: LeeJiancong
* @Date: 2020-08-04 15:05:52
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-04 15:49:47
*/
import { defineConfig } from 'umi';
import routes from './router'
import routes from './routes/index'
import proxy from './proxy'
import theme from './theme.config'
......
/*
* @Author: LeeJiancong
* @Date: 2020-08-04 15:47:40
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-04 15:56:02
*/
/**
* @description 路由配置页, 更多配置可查看 https://umijs.org/zh-CN/docs/routing#routes
*/
import pageCustomized from './pageCustomized'
const routes = [pageCustomized]
const router = [
{
path: '/login',
component: '@/pages/user/login',
},
{
path: '/',
component: '@/layouts/index',
routes: [
{
path: '/',
redirect: '/home'
},
{
path: '/home',
name: 'home',
component: '@/pages/home',
icon: 'BarChartOutlined'
},
...routes
]
}
]
export default router
/*
* @Author: LeeJiancong
* @Date: 2020-08-04 15:47:59
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-08-04 15:54:36
*/
/**
* @description 路由配置页, 更多配置可查看 https://umijs.org/zh-CN/docs/routing#routes
*/
const router =
{
path: '/pageCustomized',
name: 'pageCustomized',
icon: 'SmileOutlined',
routes: [
{
path: '/pageCustomized/shopCenterTemplate',
name: 'shopCenterTemplate',
component: '@/pages/pageCustomized/shopCenterTemplate',
},
{
path: '/pageCustomized/shopTemplate',
name: 'shopTemplate',
component: '@/pages/pageCustomized/shopTemplate',
},
{
path: '/pageCustomized/template/detail',
name: 'templateDetail',
component: '@/pages/pageCustomized/templateDetail',
hideInMenu: true,
hidePageHeader: true,
},
]
}
export default router
......@@ -28,6 +28,7 @@
"classnames": "^2.2.6",
"core-js": "^3.6.5",
"god": "0.0.28",
"god-yapi2ts": "1.6.0",
"lint-staged": "^10.0.7",
"mobx": "^5.15.4",
"mobx-react": "^6.2.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment