menu.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. /**
  2. * 菜单配置
  3. *
  4. * @author CaiAoLin
  5. * @date 2017/6/5
  6. * @version
  7. */
  8. let menuData = {
  9. 'dashboard': {
  10. title: '首页',
  11. url: '/dashboard',
  12. name: 'dashboard',
  13. iconClass: 'glyphicon glyphicon-home'
  14. },
  15. 'user': {
  16. title: '用户管理',
  17. url: '/user',
  18. name: 'user',
  19. iconClass: 'glyphicon glyphicon-user',
  20. children: {
  21. 'index' : {
  22. title: '普通用户',
  23. url: '/user',
  24. name: 'index',
  25. }/*,
  26. 'test-user' : {
  27. title: '测试用户',
  28. url: '/user/test-user',
  29. name: 'test-user',
  30. }*/
  31. }
  32. },
  33. 'notify': {
  34. title: '通知管理',
  35. url: '/notify',
  36. name: 'notify',
  37. iconClass: 'glyphicon glyphicon-bell',
  38. },
  39. 'version': {
  40. title: '费用定额',
  41. url: '/compilation',
  42. name: 'compilation',
  43. iconClass: 'glyphicon glyphicon-tag'
  44. },
  45. 'tool': {
  46. title: '工具',
  47. url: '/tool',
  48. name: 'tool',
  49. iconClass: 'glyphicon glyphicon-wrench'
  50. },
  51. 'manager': {
  52. title: '后台管理',
  53. url: '/manager',
  54. name: 'manager',
  55. iconClass: 'glyphicon glyphicon-cog',
  56. children: {
  57. 'index' : {
  58. title: '账号管理',
  59. url: '/manager',
  60. name: 'index',
  61. },
  62. 'admin' : {
  63. title: '超级管理员',
  64. url: '/manager/admin',
  65. name: 'admin',
  66. }
  67. }
  68. }
  69. };
  70. export default menuData;