Vue怎么返回上一级,返回上一页面

电玩女神 2021-11-05 13:40 852阅读 0赞
  1. <button @click='prev'>返回上一级</button>
  2. methods:{
  3. prev(){
  4. this.$router.go(-1)
  5. }
  6. }
  7. 前进就是this.$router.go(1)

发表评论

表情:
评论列表 (有 0 条评论,852人围观)

还没有评论,来说两句吧...

相关阅读