📅  最后修改于: 2022-03-11 14:48:35.746000             🧑  作者: Mango
// bad
this.sService.getSome().then((value: []) => {
if (value.length > 0) {
console.log(value)
}
});
//fix
this.sService.getSome().then((value: [{}]) => {
if (value.length > 0) {
console.log(value)
}
});