mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 09:16:58 +08:00
fix(history): 桌面端媒体整理表格显示海报缩略图 (#665)
桌面端分组模式与列表模式的标题列此前硬编码类型图标,从不展示真实海报。 现复用移动端卡片已有的 getHistoryPosterUrl helper 渲染海报缩略图, 海报加载失败时通过 VImg 的 error 插槽回退到原有的类型图标结构。
This commit is contained in:
@@ -1492,9 +1492,24 @@ onUnmounted(() => {
|
|||||||
</template>
|
</template>
|
||||||
<template #item.title="{ item }">
|
<template #item.title="{ item }">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
|
<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>
|
<VAvatar>
|
||||||
<VIcon :icon="getIcon(item.type || '')" />
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
|
</template>
|
||||||
|
</VImg>
|
||||||
|
<VAvatar v-else>
|
||||||
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
|
</VAvatar>
|
||||||
<div class="d-flex flex-column ms-1">
|
<div class="d-flex flex-column ms-1">
|
||||||
<span v-if="item.type === '电视剧'" class="d-block text-high-emphasis min-w-20">
|
<span v-if="item.type === '电视剧'" class="d-block text-high-emphasis min-w-20">
|
||||||
{{ item?.seasons }}{{ item?.episodes }}
|
{{ item?.seasons }}{{ item?.episodes }}
|
||||||
@@ -1576,9 +1591,24 @@ onUnmounted(() => {
|
|||||||
>
|
>
|
||||||
<template #item.title="{ item }">
|
<template #item.title="{ item }">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
|
<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>
|
<VAvatar>
|
||||||
<VIcon :icon="getIcon(item.type || '')" />
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
</VAvatar>
|
</VAvatar>
|
||||||
|
</template>
|
||||||
|
</VImg>
|
||||||
|
<VAvatar v-else>
|
||||||
|
<VIcon :icon="getIcon(item.type || '')" />
|
||||||
|
</VAvatar>
|
||||||
<div class="d-flex flex-column ms-1">
|
<div class="d-flex flex-column ms-1">
|
||||||
<span v-if="item.type === '电视剧'" class="d-block text-high-emphasis min-w-20">
|
<span v-if="item.type === '电视剧'" class="d-block text-high-emphasis min-w-20">
|
||||||
{{ item?.title }} {{ item?.seasons }}{{ item?.episodes }}
|
{{ item?.title }} {{ item?.seasons }}{{ item?.episodes }}
|
||||||
|
|||||||
Reference in New Issue
Block a user