摘要:
一,通过路由带参数进行传值 ①两个组件 A和B,A组件通过query把orderId传递给B组件(触发事件可以是点击事件、钩子函数等) this.$router.push({ path: '/conponentsB', query: { orderId: 123 } }) // 跳转到B ②在B组件 阅读全文
摘要:
在项目文件中,如果是vue页面中的内部跳转,用this.$router.push()可以实现, 例如: this.$router.push({path: '/channeldetailview', query: {channelid: this.data.id}}); 跳到外部链接,不能用这个。不然 阅读全文