router.js 586 B

12345678910111213141516171819202122232425262728293031323334353637
  1. const data = [
  2. {
  3. path: '/',
  4. component: 'Layout',
  5. redirect: '/index',
  6. meta: {
  7. title: '首页',
  8. icon: 'home-4-line',
  9. affix: true,
  10. },
  11. children: [
  12. {
  13. path: 'index',
  14. name: 'Index',
  15. component: '@/views/index',
  16. meta: {
  17. title: '首页',
  18. icon: 'home-4-line',
  19. affix: true,
  20. },
  21. },
  22. ],
  23. },
  24. ]
  25. module.exports = [
  26. {
  27. url: '/menu/navigate',
  28. type: 'get',
  29. response() {
  30. return {
  31. code: 200,
  32. msg: 'success',
  33. data,
  34. }
  35. },
  36. },
  37. ]