Skip to content

Commit

Permalink
修复bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jooooock committed Sep 26, 2024
1 parent 878775f commit e97df97
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pages/dashboard/download.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<th>作者</th>
<th class="w-24">是否原创</th>
<th class="w-36">所属合集</th>
<th class="w-12">原文</th>
</tr>
</thead>
<tbody>
Expand All @@ -107,6 +108,11 @@
class="text-blue-600 mr-2">#{{ album.title }}</span>
</p>
</td>
<td class="text-center">
<a class="text-blue-500 underline" :href="article.link" target="_blank">
<UIcon name="i-heroicons-link-16-solid" class="w-5 h-5" />
</a>
</td>
</tr>
</tbody>
</table>
Expand Down
4 changes: 3 additions & 1 deletion utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ export async function packHTMLAssets(html: string, title: string, zip?: JSZip) {
const urls: string[] = []
videoPageInfos.forEach(videoPageInfo => {
urls.push(videoPageInfo.cover_url)
urls.push(videoPageInfo.mp_video_trans_info[0].url)
if (videoPageInfo.mp_video_trans_info.length > 0) {
urls.push(videoPageInfo.mp_video_trans_info[0].url)
}
})
return await pool.downloads<string>(urls, resourceDownloadFn)
})
Expand Down

0 comments on commit e97df97

Please sign in to comment.