Skip to content

Commit 50ba44c

Browse files
committed
🐞 fix(下载确认): 考虑分p可能无标题的情况
1 parent a6787ff commit 50ba44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/DownloadModal/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default function DownloadModal(props: DownloadModalProps) {
7474
// 视频分p
7575
const pages = useMemo(() => {
7676
if (!Array.isArray(props.videoInfo.pages)) return []
77-
return props.videoInfo.pages.map((v) => ({ value: v.page, label: v.part }))
77+
return props.videoInfo.pages.map((v) => ({ value: v.page, label: v.part?.trim() ? v.part : '无标题' }))
7878
}, [props.videoInfo])
7979

8080
const [open, setOpen] = useState(false)

0 commit comments

Comments
 (0)