vue动态修改地址栏参数

that.$router.push({
                query:{
                    newsId:preId
                }
            })

newsId为参数,preId为传的值

你可能感兴趣的:(vue动态修改地址栏参数)