如果没有categoryId的情况就不筛选
This commit is contained in:
parent
e98ce03861
commit
29643f126e
|
|
@ -43,7 +43,9 @@ export default OakComponent({
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
// 只能在这里做筛选,不知道有没有更好的做法
|
// 只能在这里做筛选,不知道有没有更好的做法
|
||||||
.filter((item) => item.categoryId === categoryId),
|
.filter(
|
||||||
|
(item) => !categoryId || item.categoryId === categoryId
|
||||||
|
),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue