日常的路由跳转,基本都会用到传参,有两种方式:path + query, name + params 常用的写法: this.$router.push({ path: 'proDetail',query:{id:query.id,from:this.menuName,fromPath:'proList'}}); 或者 this.$router.push({ name: 'proDetail',params:{id:query.id,from:this.menuName,fromPath:'pro…