vue中返回上一页的方法 1、在methods里添加方法,名字自定义,这里命名为back。 methods: { back () { window.history.back() } } 2、然后在需要的时候触发该事件即可。