feat: 更新新闻组件,修正缩略图链接为公共URL

This commit is contained in:
2026-01-11 17:13:14 +07:00
parent da6d6ec73f
commit 3f846a2a04
2 changed files with 2 additions and 2 deletions

View File

@@ -87,7 +87,7 @@ function handleDownloadAttachment(url: string, filename: string) {
<!-- 缩略图 -->
<div v-if="data.thumbnailId" class="my-6 rounded-xl overflow-hidden shadow-sm dark:shadow-md">
<img :src="data.thumbnailId" :alt="data.title" class="w-full h-auto block">
<img :src="data.thumbnail.publicUrl" :alt="data.title" class="w-full h-auto block">
</div>
<!-- 正文内容 -->

View File

@@ -34,7 +34,7 @@ function openNewsDetail(item: NewData) {
>
<div class="shrink-0">
<img
:src="item.thumbnailId!"
:src="item.thumbnail.publicUrl"
:alt="item.title"
class="w-20 h-20 rounded-lg object-cover"
>