fix(webui): 「视频转主页」只在抖音工作区出现
Deploy VitePress site to Pages / build (push) Canceled after 0s
Deploy VitePress site to Pages / Deploy (push) Canceled after 0s

它整条链路都是抖音的(aweme/detail + sec_uid 拼主页),小红书没有对应的
接口模块。换到小红书还摆着这个按钮,点开只会一条条报错。
This commit is contained in:
2026-10-23 09:38:21 +08:00
parent 213be57055
commit 19b45908e3
@@ -28,7 +28,7 @@ export function MonitorDashboard() {
const cookieOk = cookieStatus?.present ?? false
const webhookOk = webhookStatus?.configured ?? false
const { isWired, isLoading: platformLoading } = useCurrentPlatform()
const { platform, isWired, isLoading: platformLoading } = useCurrentPlatform()
const [selectedTaskId, setSelectedTaskId] = useState<number | null>(null)
const [editorOpen, setEditorOpen] = useState(false)
@@ -90,7 +90,9 @@ export function MonitorDashboard() {
监控任务
</span>
<div className="flex items-center gap-1">
{/* 手上只有一条作品链接时,先把它的号找出来 —— 建任务要的是主页里的 sec_uid。 */}
{/* 手上只有一条作品链接时,先把它的号找出来 —— 建任务要的是主页里的 sec_uid。
只有抖音接得上:小红书没有对应的接口模块,那条路要走子进程爬虫。 */}
{platform === 'dy' && (
<Button
variant="outline"
size="sm"
@@ -100,6 +102,7 @@ export function MonitorDashboard() {
<Link2 className="w-3 h-3 mr-1" />
视频转主页
</Button>
)}
<Button size="sm" onClick={openCreate}>
<Plus className="w-3 h-3 mr-1" />
新建
@@ -231,7 +234,9 @@ export function MonitorDashboard() {
</div>
<TaskEditorDialog open={editorOpen} onOpenChange={setEditorOpen} task={editingTask} />
{platform === 'dy' && (
<VideoLinkTool open={linkToolOpen} onOpenChange={setLinkToolOpen} />
)}
</div>
)
}