2022年8月5日
摘要: app.use(store).use(router).mount('#app') 通过调用 app.use(router),可以在任意组件中以 this.$router 的形式访问,并且以 this.$route 的形式访问当前路由 1、带参数的动态路由匹配 使用场景:页面跳转,想要携带id到目标页 阅读全文
posted @ 2022-08-05 14:31 法老的微笑 阅读(205) 评论(0) 推荐(0)