mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
[组件-动态图片平铺展示] 平铺转发的动态
This commit is contained in:
parent
092cdbf866
commit
ce2168b0ea
@ -13,7 +13,12 @@ export const component = defineComponentMetadata({
|
||||
const vueData = getVueData(card.element)
|
||||
|
||||
// 普通动态
|
||||
const path = 'data.modules.module_dynamic.major.opus.style'
|
||||
const cardType = vueData?.data?.type
|
||||
const path =
|
||||
cardType === 'DYNAMIC_TYPE_FORWARD'
|
||||
? 'data.orig.modules.module_dynamic.major.opus.style'
|
||||
: 'data.modules.module_dynamic.major.opus.style'
|
||||
|
||||
const imageViewerStyle: number | null = lodash.get(vueData, path, null)
|
||||
if (imageViewerStyle === 1) {
|
||||
lodash.set(vueData, path, undefined)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user