This commit is contained in:
root 2025-07-11 16:19:10 +08:00
parent 2030decc8d
commit 2076d85023
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ const ProjectDetailPage: React.FC = () => {
const response = await MediaService.getAllSegments() const response = await MediaService.getAllSegments()
if (response.status && response.data) { if (response.status && response.data) {
// 过滤包含商品名标签的素材(包括已使用和未使用的) // 过滤包含商品名标签的素材(包括已使用和未使用的)
console.log(`素材:`, response.data)
const filteredMaterials = response.data.filter(segment => const filteredMaterials = response.data.filter(segment =>
segment.tags.includes(project.product_name) segment.tags.includes(project.product_name)
) )