fix: exclude owned works from competitor analysis

This commit is contained in:
2026-10-06 14:15:02 +08:00
parent 915d8c44e0
commit 881afb6203
3 changed files with 89 additions and 2 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ interface CollectionProgress {
}
interface WorksGalleryProps {
/** 不传则不过滤来源(如竞品分析页跨全部竞品);监控/自有账号详情传具体账号 ID。 */
/** 不传则不限定账号;仍按 sourceType 限定来源类型。监控/自有账号详情传具体账号 ID。 */
sourceId?: string;
sourceType?: 'owned' | 'competitor';
emptyHint?: string;
+1 -1
View File
@@ -69,7 +69,7 @@ export default function Page() {
/>
</Space>
</Card>
<WorksGallery emptyHint="暂无符合条件的作品。" extraFilters={extraFilters} />
<WorksGallery sourceType="competitor" emptyHint="暂无符合条件的作品。" extraFilters={extraFilters} />
</Flex>
);
}