menus.ts 600 B

1234567891011121314151617181920212223242526272829303132333435
  1. import { resultSuccess } from '../_util';
  2. const menusList = [
  3. {
  4. path: '/dashboard',
  5. name: 'Dashboard',
  6. component: 'LAYOUT',
  7. redirect: '/dashboard',
  8. meta: {
  9. icon: 'DashboardOutlined',
  10. title: 'Dashboard',
  11. },
  12. children: [
  13. {
  14. path: 'console',
  15. name: 'dashboard',
  16. component: '/dashboard/index',
  17. meta: {
  18. title: '主控台',
  19. },
  20. },
  21. ],
  22. },
  23. ];
  24. export default [
  25. {
  26. url: '/api/menus',
  27. timeout: 1000,
  28. method: 'get',
  29. response: () => {
  30. return resultSuccess(menusList);
  31. },
  32. },
  33. ];