[关闭]
@2890594972 2017-12-06T17:58:41.000000Z 字数 893 阅读 847

vue-router 动态路由

路由 vue vue-router


二级路由,返回到一级路径

image_1c0mfcf6p1i641tkn1f4aichthc9.png-59.8kB

编程式路由
image_1c0mfhav11oiqgc98sihm42g1m.png-34.2kB

image_1c0mfldh0jha11qo14tu1mqd1e1913.png-13.1kB

  1. [{
  2. 'title': '订单管理',
  3. 'hasChild': false,
  4. 'index': '1',
  5. 'subItem': [{
  6. 'title': '我的订单',
  7. 'component': 'myorder',
  8. 'hasChild': true
  9. }, {
  10. 'title': '我的竞价',
  11. 'component': 'bidding',
  12. 'hasChild': true,
  13. }, {
  14. 'title': '我的服务',
  15. 'component': 'myserver',
  16. 'hasChild': true,
  17. }]
  18. },
  19. {
  20. 'title': '财务管理',
  21. 'hasChild': false,
  22. 'index': '2',
  23. 'subItem': [{
  24. 'title': '我的资产',
  25. 'component': 'myasset',
  26. 'hasChild': true,
  27. }, {
  28. 'title': '收支明细',
  29. 'component': 'myincome',
  30. 'hasChild': true,
  31. }, {
  32. 'title': '我的发票',
  33. 'component': 'mybill',
  34. 'hasChild': true,
  35. }]
  36. },
  37. {
  38. 'title': '产品管理',
  39. 'hasChild': false,
  40. 'index': '3',
  41. 'subItem': [{
  42. 'title': '产品管理',
  43. 'component': 'myorder',
  44. 'hasChild': true,
  45. }, {
  46. 'title': '发布产品',
  47. 'component': 'bidding',
  48. 'hasChild': true,
  49. }]
  50. },
  51. {
  52. 'title': '企业中心',
  53. 'hasChild': false,
  54. 'index': '4',
  55. 'subItem': [{
  56. 'title': '我的企业',
  57. 'component': 'myfirm',
  58. 'hasChild': true,
  59. }, {
  60. 'title': '个人信息',
  61. 'component': 'myinform',
  62. 'hasChild': true,
  63. }, {
  64. 'title': '员工管理',
  65. 'component': 'mystaff',
  66. 'hasChild': true,
  67. }]
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注