From b830642c14ebc379c7b7c8f88669de57ce7d28e2 Mon Sep 17 00:00:00 2001 From: 170-carry Date: Wed, 29 Apr 2026 19:28:54 +0800 Subject: [PATCH] =?UTF-8?q?vip=E7=B3=BB=E7=BB=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/views/resident-activity/vip-config.vue | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/apps/src/views/resident-activity/vip-config.vue b/apps/src/views/resident-activity/vip-config.vue index 859eaf5..a4d8114 100644 --- a/apps/src/views/resident-activity/vip-config.vue +++ b/apps/src/views/resident-activity/vip-config.vue @@ -176,19 +176,32 @@ function createLevel(level: number) { function normalizeResource(value: Record | null | undefined) { const resourceId = String(value?.resourceId ?? '').trim(); + const url = String(value?.url || value?.sourceUrl || value?.resourceUrl || '').trim(); return { name: String(value?.name || ''), resourceId: resourceId === '0' ? '' : resourceId, - url: String(value?.url || ''), + resourceUrl: url, + sourceUrl: url, + url, }; } function normalizePropsSourceResource(value: Record | null | undefined) { const resourceId = String(value?.id ?? value?.resourceId ?? '').trim(); + const url = String( + value?.sourceUrl || + value?.resourceUrl || + value?.url || + value?.animationUrl || + value?.cover || + '', + ).trim(); return { name: String(value?.name || ''), resourceId, - url: String(value?.sourceUrl || value?.url || value?.cover || ''), + resourceUrl: url, + sourceUrl: url, + url, }; }