You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 1.5 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. import DataAnalysis from '../components/DataAnalysis.vue'
  4. import ProAnalysis from '../components/ProAnalysis.vue'
  5. import ProTrend from '../components/ProTrend.vue'
  6. import UserTrend from '../components/UserTrend.vue'
  7. import UserAnalysis from '../components/UserAnalysis.vue'
  8. import BrainAnalysis from '../components/BrainAnalysis.vue'
  9. import Overview from '../components/Overview.vue'
  10. const originalPush = Router.prototype.push
  11. Router.prototype.push = function push(location) {
  12. return originalPush.call(this, location).catch(err => err)
  13. }
  14. Vue.use(Router)
  15. export default new Router({
  16. routes:[
  17. {
  18. path:'/',
  19. name:'ProAnalysis',
  20. component:ProAnalysis,
  21. },
  22. {
  23. path:'/overview',
  24. name:'overview',
  25. component:Overview,
  26. },
  27. {
  28. path:'/ProTrend',
  29. name:'ProTrend',
  30. component:ProTrend,
  31. },
  32. {
  33. path:'/ProAnalysis',
  34. name:'ProAnalysis',
  35. component:ProAnalysis,
  36. },
  37. {
  38. path:'/UserAnalysis',
  39. name:'UserAnalysis',
  40. component:UserAnalysis,
  41. },
  42. {
  43. path:'/UserTrend',
  44. name:'UserTrend',
  45. component:UserTrend,
  46. },
  47. {
  48. path:'/BrainAnalysis',
  49. name:'BrainAnalysis',
  50. component:BrainAnalysis,
  51. },
  52. ],
  53. })