动态修改路由参数

/**
* 移出黑名单
* @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' } });
});
}
posted @ 2021-01-29 17:22  _ryze  阅读(255)  评论(0编辑  收藏  举报