From 648c9917abc44bafa68efbc43629ff32d3a12f1a Mon Sep 17 00:00:00 2001 From: xiezhouwei Date: Tue, 23 Jun 2026 11:15:24 +0800 Subject: [PATCH] fix: hide cache prices on model card, show only input and output prices --- .../view/card/PricingCardView.jsx | 39 ++++++++++--------- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/web/src/components/table/model-pricing/view/card/PricingCardView.jsx b/web/src/components/table/model-pricing/view/card/PricingCardView.jsx index bf86a22..baedb40 100644 --- a/web/src/components/table/model-pricing/view/card/PricingCardView.jsx +++ b/web/src/components/table/model-pricing/view/card/PricingCardView.jsx @@ -557,25 +557,26 @@ const PricingCardView = ({ }); } - if (cache) { - items.push({ - key: 'cache', - label: t('缓存读取价格'), - value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`, - suffix: unitSuffix, - original: original?.cache, - }); - } - - if (createCache) { - items.push({ - key: 'create-cache', - label: t('缓存创建价格'), - value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`, - suffix: unitSuffix, - original: original?.createCache, - }); - } + // 卡片表面仅展示输入/输出价格,缓存价格不在卡片上显示(详情弹窗中仍可见) + // if (cache) { + // items.push({ + // key: 'cache', + // label: t('缓存读取价格'), + // value: cache.single || `${cache.symbol}${cache.min} ~ ${cache.symbol}${cache.max}`, + // suffix: unitSuffix, + // original: original?.cache, + // }); + // } + // + // if (createCache) { + // items.push({ + // key: 'create-cache', + // label: t('缓存创建价格'), + // value: createCache.single || `${createCache.symbol}${createCache.min} ~ ${createCache.symbol}${createCache.max}`, + // suffix: unitSuffix, + // original: original?.createCache, + // }); + // } } if (videoFlat) {