let arr = ["刘备","关羽","张飞","赵云","马超","黄忠"];
let obj = {};
// 将数组转化为对象
for (let key in arr) {
obj[key] = arr[key];
};
newObj = Object.keys(obj).map(val => ({
label: obj[val],
value: obj[val]
}));
console.log(newObj)
效果如下:label,value可根据具体需求修改