let routes = [
{
path: "/cover/:id",
component: resolve => require(['./cover.vue'], resolve),
name: "cover",
},]
this.$router.options.routes.push(routes);
this.$router.addRoutes(routes);
标签:vue,addRoutes,cover,resolve,routes,router
来源: https://www.cnblogs.com/mrt-yyy/p/12763856.html