首页 > TAG信息列表 > dfdf

vue-router跳转页面的两种方式

1.通过path地址 (1)query传参:/path?key1=value&key2=val2... this.$router.push(`/detail/${this.msg}/dfdf`)  (2)params传参:/path/${this.msg}/dfdf this.$router.push(`/detail/${this.msg}/dfdf`) 2. 通过路由name跳转 this.$router.push({name:'news '})