vue 页面跳转 带参数页面刷新或者回退参数消失的解决方法

一、示例:

this.$router.push({  name:'index',params: { id: status},query: { id:  status2 }})

二、问题描述:

       使用params 传递参数,,页面刷新或者回退路由中参数消失

三、解决:

       使用Query 即可解决该问题。

四、接受参数:

this.$route.query.id

猜你喜欢

转载自blog.csdn.net/wind1_rain/article/details/109035966