其他分享
首页 > 其他分享> > vue-router addRoutes

vue-router addRoutes

作者:互联网

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