vue router.back() 返回上一页时带参数
子组件
this.$route.params.pageIndex = 0 this.$router.back()
父组件
beforeRouteEnter(to, from, next) { if (Object.prototype.hasOwnProperty.call(from.params, 'pageIndex')) { pageIndex = from.params.pageIndex } next() }
参考:https://blog.csdn.net/Guoyu1_/article/details/132405942