this.tableData.forEach(item => {
if (item.status == 0) {
item.status = "冻结";
} else if (item.status == 1) {
item.status = "正常";
}
});
vue将后端传过来的数字 在前端页面显示为文字
最新推荐文章于 2023-05-09 10:24:29 发布
this.tableData.forEach(item => {
if (item.status == 0) {
item.status = "冻结";
} else if (item.status == 1) {
item.status = "正常";
}
});