我想解决这个问题
我尝试了每件事:p
Tabs.map(tab => {
Lessons.filter(lesson => lesson.section_id === undefined && lesson.tab_id === tab.id).map(lesson => {
this.state.items.push(
{
id: lesson.id,
slug: lesson.slug
}
);
});
Sections.filter(section => section.tab_id === tab.id).map(section => {
Lessons.filter(lesson => lesson.section_id === section.id).map(lesson => {
this.state.items.push(
{
id: lesson.id,
slug: lesson.slug
}
);
});
});
});
第 31 行:期望在箭头函数 array-callback-return
中返回一个值 第 32 行:期望在箭头函数 array-callback-return
中返回一个值 第 40 行:期望在箭头函数 array-callback-return 中返回一个值
第 41 行: 期望在箭头函数数组-回调-返回中返回一个值
搜索关键字以了解有关每个警告的更多信息。要忽略,请将 // eslint-disable-next-line 添加到前一行。
幕布斯6054654
相关分类