fix
This commit is contained in:
parent
d66187af39
commit
a03e57a4d9
|
|
@ -25,7 +25,7 @@ const ProjectMaterialsCenter: React.FC<ProjectMaterialsCenterProps> = ({
|
|||
}) => {
|
||||
const [searchTerm, setSearchTerm] = useState('')
|
||||
const [selectedModelIds, setSelectedModelIds] = useState<string[]>([])
|
||||
const [filterType, setFilterType] = useState<'all' | 'original' | 'segmented'>('all')
|
||||
const [filterType, setFilterType] = useState<'all' | '分镜' | '原始'>('all')
|
||||
const [usageFilter, setUsageFilter] = useState<'all' | 'used' | 'unused'>('all')
|
||||
const [selectedMaterial, setSelectedMaterial] = useState<VideoSegment | null>(null)
|
||||
const [showVideoPlayer, setShowVideoPlayer] = useState(false)
|
||||
|
|
@ -91,12 +91,7 @@ const ProjectMaterialsCenter: React.FC<ProjectMaterialsCenterProps> = ({
|
|||
})
|
||||
|
||||
// 类型过滤
|
||||
let matchesType = true
|
||||
if (filterType === 'original') {
|
||||
matchesType = material.segment_index === 0
|
||||
} else if (filterType === 'segmented') {
|
||||
matchesType = material.segment_index > 0
|
||||
}
|
||||
let matchesType = material.tags.includes(filterType)
|
||||
|
||||
// 使用状态过滤
|
||||
let matchesUsage = true
|
||||
|
|
@ -298,8 +293,8 @@ const ProjectMaterialsCenter: React.FC<ProjectMaterialsCenterProps> = ({
|
|||
<div className="flex space-x-1.5">
|
||||
{[
|
||||
{ value: 'all', label: '全部' },
|
||||
{ value: 'original', label: '原始' },
|
||||
{ value: 'segmented', label: '分镜' }
|
||||
{ value: '原始', label: '原始' },
|
||||
{ value: '分镜', label: '分镜' }
|
||||
].map((option) => (
|
||||
<button
|
||||
key={option.value}
|
||||
|
|
|
|||
Loading…
Reference in New Issue