diff --git a/apps/src/views/props/components/source-group-drawer.vue b/apps/src/views/props/components/source-group-drawer.vue index 248e0f5..7654bc7 100644 --- a/apps/src/views/props/components/source-group-drawer.vue +++ b/apps/src/views/props/components/source-group-drawer.vue @@ -1,41 +1,43 @@ diff --git a/apps/src/views/props/shared.ts b/apps/src/views/props/shared.ts index a938dff..d32030c 100644 --- a/apps/src/views/props/shared.ts +++ b/apps/src/views/props/shared.ts @@ -248,6 +248,7 @@ export function getPropsTypeName(value?: null | string) { return ( PROPS_TYPES.find((item) => item.value === value)?.name || PROPS_STORE_TYPES.find((item) => item.value === value)?.name || + BADGE_TYPE_OPTIONS.find((item) => item.value === value)?.name || PROPS_SOURCE_GROUP_TYPE_MAP[value]?.name || value ); @@ -279,7 +280,12 @@ export function isPropsCouponType(type?: null | string) { } export function isBadgeRewardType(type?: null | string) { - return type === 'BADGE' || type === 'ROOM_BADGE' || type === 'HONOR_ACTIVITY'; + return ( + type === 'BADGE' || + type === 'ROOM_BADGE' || + type === 'HONOR_ACTIVITY' || + BADGE_TYPE_OPTIONS.some((item) => item.value === type) + ); } export function isPropsSourceType(type?: null | string) {