From fa53ab1d6aae3bb47847e30d8fcef9dc2fef5a43 Mon Sep 17 00:00:00 2001 From: zhaoying Date: Thu, 18 Dec 2025 13:34:32 +0800 Subject: [PATCH] feat(web): api method readonly --- web/src/views/ApplicationConfig/Api.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/ApplicationConfig/Api.tsx b/web/src/views/ApplicationConfig/Api.tsx index 1281f573..ca8b20ee 100644 --- a/web/src/views/ApplicationConfig/Api.tsx +++ b/web/src/views/ApplicationConfig/Api.tsx @@ -15,7 +15,7 @@ import { maskApiKeys } from '@/utils/apiKeyReplacer' const Api: FC<{ application: Application | null }> = ({ application }) => { const { t } = useTranslation(); - const [activeMethods, setActiveMethod] = useState(['GET']); + const activeMethods = ['GET']; const { message, modal } = App.useApp() const copyContent = window.location.origin + '/v1/chat' const apiKeyModalRef = useRef(null); @@ -86,7 +86,7 @@ const Api: FC<{ application: Application | null }> = ({ application }) => { // 计算total_requests总数 const totalRequests = apiKeyList.reduce((total, item) => total + item.total_requests, 0); return ( -
+
= ({ application }) => {
{['GET', 'POST', 'PUT', 'DELETE'].map((method) => ( - ))}