参考:vue中this.$router.push用法 - leviH - 博客园
this.$router.push():路由传值
想要导航到不同的URL,使用router.push()方法,这个方法会向history栈添加一个新纪录,当用户点击浏览器后退按钮时,会回到之前的URL
简单说就是使用this.$router.push()打开一个url实现页面跳转
具体代码如下:
toDebtMenu: function (row) { let key = row.debtCode; this.$router.push({ path: "/debtInfo/debtDetail", query: { menuType: "debt", type: "add", name: row.debtName, key: key } }); },