动态修改路由参数

/**
* 移出黑名单
* @param id 主键
*/
@Confirm({ title: '移出黑名单', content: '是否移出黑名单?' })
public handleOut(id: string) {
this.vdRequest(API_USER_BLACK, { id: id, isBlacklist: 0 }).then(() => {
this.isBlack = 0;
this.$router.push({ params: { ...this.$route.params, isBlacklist: '0' } });
});
}
原文地址:https://www.cnblogs.com/lhx5213/p/14346103.html