mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-07 08:46:40 +08:00
fix(history): 桌面端媒体整理表格显示海报缩略图 (#665)
桌面端分组模式与列表模式的标题列此前硬编码类型图标,从不展示真实海报。 现复用移动端卡片已有的 getHistoryPosterUrl helper 渲染海报缩略图, 海报加载失败时通过 VImg 的 error 插槽回退到原有的类型图标结构。
This commit is contained in:
@@ -1492,7 +1492,22 @@ onUnmounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
<template #item.title="{ item }">
|
<template #item.title="{ item }">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<VAvatar>
|
<VImg
|
||||||
|
v-if="getHistoryPosterUrl(item)"
|
||||||
|
:src="getHistoryPosterUrl(item)"
|
||||||
|
:alt="item.title"
|
||||||
|
cover
|
||||||
|
width="44"
|
||||||
|
height="66"
|
||||||
|
class="rounded-sm flex-shrink-0"
|
||||||
|
>
|
||||||
|
<template #error>
|
||||||
|
<VAvatar>
|
||||||
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
|
</VAvatar>
|
||||||
|
</template>
|
||||||
|
</VImg>
|
||||||
|
<VAvatar v-else>
|
||||||
<VIcon :icon="getIcon(item.type || '')" />
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
<div class="d-flex flex-column ms-1">
|
<div class="d-flex flex-column ms-1">
|
||||||
@@ -1576,7 +1591,22 @@ onUnmounted(() => {
|
|||||||
>
|
>
|
||||||
<template #item.title="{ item }">
|
<template #item.title="{ item }">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<VAvatar>
|
<VImg
|
||||||
|
v-if="getHistoryPosterUrl(item)"
|
||||||
|
:src="getHistoryPosterUrl(item)"
|
||||||
|
:alt="item.title"
|
||||||
|
cover
|
||||||
|
width="44"
|
||||||
|
height="66"
|
||||||
|
class="rounded-sm flex-shrink-0"
|
||||||
|
>
|
||||||
|
<template #error>
|
||||||
|
<VAvatar>
|
||||||
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
|
</VAvatar>
|
||||||
|
</template>
|
||||||
|
</VImg>
|
||||||
|
<VAvatar v-else>
|
||||||
<VIcon :icon="getIcon(item.type || '')" />
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
<div class="d-flex flex-column ms-1">
|
<div class="d-flex flex-column ms-1">
|
||||||
|
|||||||
Reference in New Issue
Block a user