fix(web): identify the library in organize target summaries

This commit is contained in:
root committed 2026-10-13 20:48:07 +08:00
1 parent 238d1e67b7
commit 1cc830e1af
1 file changed
+1 -1
@@ -542,7 +542,7 @@ export function OrganizeWizard({ source, onClose }: { source: OrganizeSource; on
</p>
<p className="text-meta text-muted-foreground">
{options.target.mode === "dir"
? `目标:${options.target.ref.path}`
? `目标:${roots.find((r) => options.target.mode === "dir" && r.id === options.target.ref.root)?.name ?? options.target.ref.root}/${options.target.ref.path || "(库根)"}`
: options.target.mode === "root"
? `目标:${roots.find((r) => options.target.mode === "root" && r.id === options.target.rootId)?.name ?? "指定媒体库"}`
: "目标按分类与已有目录确定"}