// A code block
var foo = 'bar';
// An highlighted block
//判断数组中是否存在某个属性
const flag = this.buyWay_rightTableColumns.some((item) => {
if (item.label === '换货信息') return true;
});
if (!flag) {
this.buyWay_rightTableColumns.push({
align: "center",
label: "换货信息",
prop: "viewGoodsInfo",
slots: true,
});
}
// else {
// message.error('该数据已存在');
// }