const configdata = [];
const ticketarray = [];
res.data.customer_source.map(function (value) {
configdata.push(value.value)
ticketarray.push(value.label)
})
let ticketData =configdata.reduce((result, value, index) => {
result[value] =ticketarray[index];
return result;
}, {});
this.sourceObj =ticketData
网友评论