mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-21 23:23:43 +00:00
# Conflicts: # package.json # src/pages/dashboard/components/cpu.js # src/pages/dashboard/components/user.js # yarn.lock
98 lines
1.5 KiB
JavaScript
98 lines
1.5 KiB
JavaScript
const { config } = require('./common')
|
|
|
|
const { apiPrefix } = config
|
|
let database = [
|
|
{
|
|
id: '1',
|
|
icon: 'dashboard',
|
|
name: 'Dashboard',
|
|
route: '/dashboard',
|
|
},
|
|
{
|
|
id: '2',
|
|
bpid: '1',
|
|
name: 'Users',
|
|
icon: 'user',
|
|
route: '/user',
|
|
},
|
|
{
|
|
id: '7',
|
|
bpid: '1',
|
|
name: 'Posts',
|
|
icon: 'shopping-cart',
|
|
route: '/post',
|
|
},
|
|
{
|
|
id: '21',
|
|
mpid: '-1',
|
|
bpid: '2',
|
|
name: 'User Detail',
|
|
route: '/user/:id',
|
|
},
|
|
{
|
|
id: '3',
|
|
bpid: '1',
|
|
name: 'Request',
|
|
icon: 'api',
|
|
route: '/request',
|
|
},
|
|
{
|
|
id: '4',
|
|
bpid: '1',
|
|
name: 'UI Element',
|
|
icon: 'camera-o',
|
|
},
|
|
{
|
|
id: '43',
|
|
bpid: '4',
|
|
mpid: '4',
|
|
name: 'DropOption',
|
|
icon: 'bars',
|
|
route: '/UIElement/dropOption',
|
|
},
|
|
{
|
|
id: '45',
|
|
bpid: '4',
|
|
mpid: '4',
|
|
name: 'Editor',
|
|
icon: 'edit',
|
|
route: '/UIElement/editor',
|
|
},
|
|
{
|
|
id: '5',
|
|
bpid: '1',
|
|
name: 'Charts',
|
|
icon: 'code-o',
|
|
},
|
|
{
|
|
id: '51',
|
|
bpid: '5',
|
|
mpid: '5',
|
|
name: 'ECharts',
|
|
icon: 'line-chart',
|
|
route: '/chart/ECharts',
|
|
},
|
|
{
|
|
id: '52',
|
|
bpid: '5',
|
|
mpid: '5',
|
|
name: 'highCharts',
|
|
icon: 'bar-chart',
|
|
route: '/chart/highCharts',
|
|
},
|
|
{
|
|
id: '53',
|
|
bpid: '5',
|
|
mpid: '5',
|
|
name: 'Rechartst',
|
|
icon: 'area-chart',
|
|
route: '/chart/Recharts',
|
|
},
|
|
]
|
|
|
|
module.exports = {
|
|
[`GET ${apiPrefix}/menus`](req, res) {
|
|
res.status(200).json(database)
|
|
},
|
|
}
|