一、示例:
this.$router.push({ name:'index',params: { id: status},query: { id: status2 }})
二、问题描述:
使用params 传递参数,,页面刷新或者回退路由中参数消失
三、解决:
使用Query 即可解决该问题。
四、接受参数:
this.$route.query.id
this.$router.push({ name:'index',params: { id: status},query: { id: status2 }})
使用params 传递参数,,页面刷新或者回退路由中参数消失
使用Query 即可解决该问题。
this.$route.query.id