动态的添加路由

  使用方法: 

    router.addRoutes() 方法
  
  

 

 

  案例:
    router.addRoutes(
      [
        {
          path:'/xi',
          component: ()=>import("./views/xi.vue")
        }
      ]
    )
posted on 2019-11-05 19:01  Web引领者  阅读(619)  评论(0)    收藏  举报