menu.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. 'last-login' : {
  27. title: '最近登录',
  28. url: '/user/last-login',
  29. name: 'last-login',
  30. }
  31. }
  32. },
  33. 'notify': {
  34. title: '通知管理',
  35. url: '/notify',
  36. name: 'notify',
  37. iconClass: 'glyphicon glyphicon-bell',
  38. children: {
  39. 'index' : {
  40. title: '用户通知',
  41. url: '/notify',
  42. name: 'index',
  43. },
  44. 'company' : {
  45. title: '内部通知',
  46. url: '/notify/company',
  47. name: 'company',
  48. }
  49. }
  50. },
  51. 'tool': {
  52. title: '工具',
  53. url: '/tool',
  54. name: 'tool',
  55. iconClass: 'glyphicon glyphicon-wrench'
  56. },
  57. 'manager': {
  58. title: '后台管理',
  59. url: '/manager',
  60. name: 'manager',
  61. iconClass: 'glyphicon glyphicon-cog',
  62. children: {
  63. 'index' : {
  64. title: '账号管理',
  65. url: '/manager',
  66. name: 'index',
  67. },
  68. 'admin' : {
  69. title: '超级管理员',
  70. url: '/manager/admin',
  71. name: 'admin',
  72. }
  73. }
  74. }
  75. };
  76. export default menuData;