From 77950e48c76f4a3b29d01831d43039caba29888a Mon Sep 17 00:00:00 2001
From: wwf <1971391498@qq.com>
Date: 星期二, 18 十一月 2025 14:12:42 +0800
Subject: [PATCH] 修改
---
app/components/base/param-item/top-k-item.tsx | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/components/base/param-item/top-k-item.tsx b/app/components/base/param-item/top-k-item.tsx
index 4c4c857..f9c6ed6 100644
--- a/app/components/base/param-item/top-k-item.tsx
+++ b/app/components/base/param-item/top-k-item.tsx
@@ -12,7 +12,7 @@
}
const maxTopK = (() => {
- const configValue = Number.parseInt(globalThis.document?.body?.getAttribute('data-public-top-k-max-value') || '', 10)
+ const configValue = parseInt(globalThis.document?.body?.getAttribute('data-public-top-k-max-value') || '', 10)
if (configValue && !isNaN(configValue))
return configValue
return 10
@@ -33,7 +33,7 @@
}) => {
const { t } = useTranslation()
const handleParamChange = (key: string, value: number) => {
- let notOutRangeValue = Number.parseFloat(value.toFixed(2))
+ let notOutRangeValue = parseFloat(value.toFixed(2))
notOutRangeValue = Math.max(VALUE_LIMIT.min, notOutRangeValue)
notOutRangeValue = Math.min(VALUE_LIMIT.max, notOutRangeValue)
onChange(key, notOutRangeValue)
--
Gitblit v1.8.0