mirror of https://github.com/djteang/OrangeTV.git
fixed:TypeError: Cannot read properties of null (reading 'large')
This commit is contained in:
parent
49d1d3b8b8
commit
7357131005
|
|
@ -298,11 +298,12 @@ function DoubanPageClient() {
|
|||
id: item.id?.toString() || '',
|
||||
title: item.name_cn || item.name,
|
||||
poster:
|
||||
item.images.large ||
|
||||
item.images.common ||
|
||||
item.images.medium ||
|
||||
item.images.small ||
|
||||
item.images.grid,
|
||||
item.images?.large ||
|
||||
item.images?.common ||
|
||||
item.images?.medium ||
|
||||
item.images?.small ||
|
||||
item.images?.grid ||
|
||||
'', // 空字符串,让 VideoCard 组件处理图片加载失败
|
||||
rate: item.rating?.score?.toFixed(1) || '',
|
||||
year: item.air_date?.split('-')?.[0] || '',
|
||||
})),
|
||||
|
|
|
|||
Loading…
Reference in New Issue