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 '})
标签:vue,跳转,dfdf,push,path,msg,router 来源: https://www.cnblogs.com/hxy--Tina/p/16591069.html