Commit 20d7f432 by cwq0219

路由修改

1 parent d329dcea
......@@ -112,99 +112,99 @@ export const resources = {
cache: true
},
component: _import('device/device')
},
'104': {
path: '/user',
icon: 'user-solid',
name: 'user',
meta: {
title: '用户管理',
authId: '104',
parentId: '0',
cache: true
},
component: _import('user/user')
},
'105': {
path: '/apiManage',
icon: 's-order',
name: 'apiManage',
meta: {
title: 'API管理',
authId: '105',
parentId: '0',
cache: true
}
},
'10501': {
path: '/apiList',
icon: 'document-copy',
name: 'apiList',
meta: {
title: 'API列表',
authId: '10501',
parentId: '105',
cache: true
},
auth: [{
authId: '1050101',
parentId: '10501',
label: '启用',
handle: 'handleUpOrDown',
ruleObj: {
attr: 'status',
rule: { 0: '启用', 1: '停用' }
}
}
],
component: _import('apiManage/apiList')
},
'10502': {
path: '/apiRecord',
icon: 'document-copy',
name: 'apiRecord',
meta: {
title: 'API调用记录',
authId: '10502',
parentId: '105',
cache: true
},
component: _import('apiManage/apiRecord')
},
'106': {
path: '/appMarket',
icon: 'document-copy',
name: 'appMarket',
meta: {
title: 'APP营销管理',
authId: '106',
parentId: '0',
cache: true
},
auth: [{
authId: '10601',
parentId: '106',
label: '新增',
category: 'Button',
type: 'primary',
handle: 'handleAdd'
}, {
authId: '10602',
parentId: '106',
label: '编辑',
handle: 'handleEdit'
}, {
authId: '10603',
parentId: '106',
label: '下架',
handle: 'handleUpOrDown',
ruleObj: {
attr: 'status',
rule: { 0: '上架', 1: '下架' }
}
}],
component: _import('appMarket/appMarket')
}
// '104': {
// path: '/user',
// icon: 'user-solid',
// name: 'user',
// meta: {
// title: '用户管理',
// authId: '104',
// parentId: '0',
// cache: true
// },
// component: _import('user/user')
// },
// '105': {
// path: '/apiManage',
// icon: 's-order',
// name: 'apiManage',
// meta: {
// title: 'API管理',
// authId: '105',
// parentId: '0',
// cache: true
// }
// },
// '10501': {
// path: '/apiList',
// icon: 'document-copy',
// name: 'apiList',
// meta: {
// title: 'API列表',
// authId: '10501',
// parentId: '105',
// cache: true
// },
// auth: [{
// authId: '1050101',
// parentId: '10501',
// label: '启用',
// handle: 'handleUpOrDown',
// ruleObj: {
// attr: 'status',
// rule: { 0: '启用', 1: '停用' }
// }
// }
// ],
// component: _import('apiManage/apiList')
// },
// '10502': {
// path: '/apiRecord',
// icon: 'document-copy',
// name: 'apiRecord',
// meta: {
// title: 'API调用记录',
// authId: '10502',
// parentId: '105',
// cache: true
// },
// component: _import('apiManage/apiRecord')
// }
// '106': {
// path: '/appMarket',
// icon: 'document-copy',
// name: 'appMarket',
// meta: {
// title: 'APP营销管理',
// authId: '106',
// parentId: '0',
// cache: true
// },
// auth: [{
// authId: '10601',
// parentId: '106',
// label: '新增',
// category: 'Button',
// type: 'primary',
// handle: 'handleAdd'
// }, {
// authId: '10602',
// parentId: '106',
// label: '编辑',
// handle: 'handleEdit'
// }, {
// authId: '10603',
// parentId: '106',
// label: '下架',
// handle: 'handleUpOrDown',
// ruleObj: {
// attr: 'status',
// rule: { 0: '上架', 1: '下架' }
// }
// }],
// component: _import('appMarket/appMarket')
// }
}
/**
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!