原始代码:
let lists = []; lists2.forEach((item) => { lists.push(item.model); });
解决以后的代码:
let lists = [] as any; lists2.forEach((item) => { lists.push(item.model); });