From 59d3b13311adcbf634cb81e24ca8e7f231a26d29 Mon Sep 17 00:00:00 2001 From: MartialBE Date: Wed, 15 May 2024 12:26:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20fix=20the=20wrong=20price?= =?UTF-8?q?=20when=20the=20input=20and=20output=20values=20in=20the=20Mode?= =?UTF-8?q?lPrice=20component=20are=200.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/ModelPrice/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/views/ModelPrice/index.js b/web/src/views/ModelPrice/index.js index f6bd7fe8..057c3fe5 100644 --- a/web/src/views/ModelPrice/index.js +++ b/web/src/views/ModelPrice/index.js @@ -85,8 +85,8 @@ export default function ModelPrice() { model: model.id, type: type_label?.label || '未知', channel_type: channel_label?.label || '未知', - input: ValueFormatter(price?.input || 30), - output: ValueFormatter(price?.output || 30) + input: ValueFormatter(price?.input !== undefined && price?.input !== null ? price.input : 30), + output: ValueFormatter(price?.output !== undefined && price?.output !== null ? price.output : 30) }); }); setRows(newRows);