vue 返回上一页有两种方法

如果使用的是 vue-router ,

this.$router.go(-1) 就可以回到上一页。

 history.go(-1) 是回到浏览器上一页。

你可能感兴趣的:(vue 返回上一页有两种方法)