邃芒官网、邃芒慧影、口播(H5) https://m.metavatar.cc
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

40 line
862 B

  1. import Vue from 'vue'
  2. import VueRouter from 'vue-router'
  3. Vue.use(VueRouter)
  4. // 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
  5. const originalPush = VueRouter.prototype.push
  6. VueRouter.prototype.push = function push(location) {
  7. return originalPush.call(this, location).catch(err => err)
  8. }
  9. const routes = [
  10. {
  11. path: '/',
  12. name: 'Home',
  13. // component: Home
  14. component: ()=> import("../components/home/home"),
  15. },
  16. {
  17. path: '/aboutUe',
  18. name: 'aboutUe',
  19. // component: Home
  20. component: ()=> import("../components/aboutUe/aboutUe"),
  21. },
  22. {
  23. path: '/styleAdd',
  24. name: 'styleAdd',
  25. // component: Home
  26. component: ()=> import("../components/styleAdd/styleAdd"),
  27. },
  28. ]
  29. const router = new VueRouter({
  30. mode: 'history',
  31. base: process.env.BASE_URL,
  32. routes
  33. })
  34. export default router