vue页面跳转

114 阅读1分钟

指定页面跳转

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

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

跳转上一个页面

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