From ce2168b0ea097a3a6e8d2e2168da85ad68205429 Mon Sep 17 00:00:00 2001 From: oxygenkun Date: Sun, 17 Mar 2024 00:51:22 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=BB=84=E4=BB=B6-=E5=8A=A8=E6=80=81=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=B9=B3=E9=93=BA=E5=B1=95=E7=A4=BA]=20=E5=B9=B3?= =?UTF-8?q?=E9=93=BA=E8=BD=AC=E5=8F=91=E7=9A=84=E5=8A=A8=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- registry/lib/components/feeds/legacy-image-viewer/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/registry/lib/components/feeds/legacy-image-viewer/index.ts b/registry/lib/components/feeds/legacy-image-viewer/index.ts index 5e4fa5f42..22d500e35 100644 --- a/registry/lib/components/feeds/legacy-image-viewer/index.ts +++ b/registry/lib/components/feeds/legacy-image-viewer/index.ts @@ -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)