feat: 更新新闻组件,修正缩略图链接为公共URL
This commit is contained in:
@@ -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>
|
||||
|
||||
<!-- 正文内容 -->
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user