腾讯T2手把手教你!如何使用addRoute来动态添加路由?【Vue】
疯狂的筱楽:
this.$router.addRoutes(dynamicRouter)
console.log(this.$router.options);
添加完以后 this.$router 还是之前的静态数据 addRouter 的内容看着并没有添加上
科技 黑科技 英雄联盟 视频教程 腾讯 野生技术协会 教程 经验分享 JAVASCRIPT VUE
疯狂的筱楽:
this.$router.addRoutes(dynamicRouter)
console.log(this.$router.options);
添加完以后 this.$router 还是之前的静态数据 addRouter 的内容看着并没有添加上