determine whether the object in the array has an attribute of endTime, and if there is no endTime, add endTime as an empty string
let kingList = res.data.data.kingList
for (let i = 0; i < kingList.length; iPP) {
if(!kingList[i].endTime) {
// endTimekingList,
kingList[i]["endTime"] = kingList[i]
}
}
return data