|
@@ -110,16 +110,18 @@ export default defineComponent({
|
|
|
const tempRows = res.data.rows || [];
|
|
|
const temp: any = [];
|
|
|
tempRows.forEach((row: any) => {
|
|
|
- temp.push({
|
|
|
- id: row.id,
|
|
|
- materialId: row.materialId,
|
|
|
- coverImg: row.coverImg,
|
|
|
- type: row.materialType,
|
|
|
- title: row.materialName,
|
|
|
- isCollect: !!row.favoriteFlag,
|
|
|
- isSelected: row.source === 'PLATFORM' ? true : false,
|
|
|
- content: row.content
|
|
|
- });
|
|
|
+ if (!row.removeFlag) {
|
|
|
+ temp.push({
|
|
|
+ id: row.id,
|
|
|
+ materialId: row.materialId,
|
|
|
+ coverImg: row.coverImg,
|
|
|
+ type: row.materialType,
|
|
|
+ title: row.materialName,
|
|
|
+ isCollect: !!row.favoriteFlag,
|
|
|
+ isSelected: row.source === 'PLATFORM' ? true : false,
|
|
|
+ content: row.content
|
|
|
+ });
|
|
|
+ }
|
|
|
});
|
|
|
data.knowledgePointList = temp;
|
|
|
data.itemList = data.knowledgePointList.map((m: any) => {
|