vue页面跳转

指定页面跳转

this.$router.push({ path:'/two.html'  })

 

<router-link to='two.html'><button>点我到第二个页面</button></router-link>

跳转上一个页面

this.$router.go(-1);   this.$router.back()             ;

posted @ 2021-03-05 11:52  肥晨  阅读(63)  评论(0编辑  收藏  举报