When you do select element-ui drop down when data is requested from the background, but how can the obj turn it into an array. And backstage return key and value in the key is to pass parameters
var obj = {
name: 'gaby',
gender: 'male'
}
var array = []
for (var key in obj) {
array.push({
value: key,
label: obj[key]
})
}
console.log(array, 222)
result