bug fixed
This commit is contained in:
parent
82f27ea216
commit
b3192b98aa
|
|
@ -110,6 +110,7 @@ const FrontendBody = () => {
|
|||
<EssaysByLabel
|
||||
oakPath='essaysByLabel'
|
||||
oakId={selectedLabelId!}
|
||||
categoryId={selectedCategoryId!}
|
||||
></EssaysByLabel>
|
||||
)}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ export default OakComponent({
|
|||
},
|
||||
},
|
||||
formData({ data }) {
|
||||
const categoryId = this.props.categoryId;
|
||||
|
||||
return {
|
||||
list: data.essayLabels$label
|
||||
?.map((item) => {
|
||||
|
|
@ -39,7 +41,9 @@ export default OakComponent({
|
|||
...item,
|
||||
cover: '',
|
||||
};
|
||||
}),
|
||||
})
|
||||
// 只能在这里做筛选,不知道有没有更好的做法
|
||||
.filter((item) => item.categoryId === categoryId),
|
||||
};
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue