v4.0.18版本更新
This commit is contained in:
@@ -175,3 +175,12 @@ export function storeLeafCategoryIds(store: {
|
||||
const id = String(store.categoryId || store.category?.id || '');
|
||||
return id ? [id] : [];
|
||||
}
|
||||
|
||||
/** C 端是否渲染「核销N次」;开关关闭或次数为 0 时不展示 */
|
||||
export function shouldShowStoreRedeemCount(
|
||||
enabled: boolean | undefined,
|
||||
count?: number | null,
|
||||
): boolean {
|
||||
if (enabled === false) return false;
|
||||
return Number(count) > 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user