Fork me on GitHub

vue-页面回退

<template>
    <div>
        <button @click="goback">我是Home01</button>
    </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    goback() {
      this.$router.go(-1);
    }
  }
};
</script>

 

posted @ 2018-10-11 16:23  欢欢11  阅读(3755)  评论(0编辑  收藏  举报