动态的添加路由

  使用方法: 

    router.addRoutes() 方法
  
  
  案例:
    router.addRoutes(
      [
        {
          path:'/xi',
          component: ()=>import("./views/xi.vue")
        }
      ]
    )
原文地址:https://www.cnblogs.com/shangjun6/p/11800836.html