whiteList.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. const constRouters = [
  2. {
  3. path: '/findpwd'
  4. },
  5. {
  6. path: '/callback'
  7. },
  8. {
  9. path: '/other',
  10. name: 'other',
  11. component: () => import('@/views/other/index.vue'),
  12. meta: {
  13. title: '其他'
  14. }
  15. },
  16. {
  17. path: '/pay/sample/doJsPay',
  18. name: 'doJsPay',
  19. component: () => import('@/views/pay/sample/doJsPay.vue'),
  20. meta: {
  21. title: '微信JSAPI支付'
  22. }
  23. },
  24. {
  25. path: '/notLook',
  26. name: 'notLook',
  27. component: () => import('@/views/notLook/index.vue'),
  28. meta: {
  29. title: '无权限访问'
  30. }
  31. },
  32. {
  33. path: '/share/:shareBatchNum',
  34. name: 'Share',
  35. component: () => import('@/views/myResource/Share.vue'),
  36. meta: {
  37. title: '分享',
  38. content: {
  39. description: '查看他人分享'
  40. }
  41. },
  42. props: true
  43. },
  44. {
  45. path: '/slogin',
  46. component: () => import('@/views/slogin/login.vue')
  47. }
  48. ]
  49. /**
  50. * 路由白名单(数组形式)
  51. *
  52. * 如果组件像登录一样,那就简单的写一个path,即可实现放开,
  53. * 如果组件不在这边的,需要手动添加组件,就像other一样,
  54. * 因为没登陆你没法拿到后端给你返回的那一坨,当然就找不到component
  55. *
  56. * @author yubaoshan
  57. */
  58. export default constRouters