From 5f409b397c2c142364eab37cf554a333f5d4d384 Mon Sep 17 00:00:00 2001 From: yml2213 Date: Thu, 30 Jul 2026 20:15:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E5=8D=B3=E5=8F=AF?= =?UTF-8?q?=E5=B1=95=E7=A4=BAAPI=E8=B0=83=E8=AF=95=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4DEV=E6=A8=A1=E5=BC=8F=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/layouts/MainLayout.tsx | 6 +----- frontend/src/pages/ApiDebugger.tsx | 11 +---------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/frontend/src/layouts/MainLayout.tsx b/frontend/src/layouts/MainLayout.tsx index 6ffe89d..594f022 100644 --- a/frontend/src/layouts/MainLayout.tsx +++ b/frontend/src/layouts/MainLayout.tsx @@ -42,12 +42,8 @@ export default function MainLayout() { items.push( { key: '/platform-merchants', icon: , label: '商户管理' }, { key: '/open-api', icon: , label: '开放接口' }, + { key: '/api-debug', icon: , label: 'API 调试' }, ) - if (import.meta.env.DEV) { - items.push( - { key: '/api-debug', icon: , label: 'API 调试' }, - ) - } } return items }, [isAdmin]) diff --git a/frontend/src/pages/ApiDebugger.tsx b/frontend/src/pages/ApiDebugger.tsx index 4479475..b324b09 100644 --- a/frontend/src/pages/ApiDebugger.tsx +++ b/frontend/src/pages/ApiDebugger.tsx @@ -239,16 +239,7 @@ export default function ApiDebugger() { 填写商户 API 客户端的 AppKey 与 Secret,选择接口并发送请求。签名在浏览器端使用 Web Crypto API 计算。 - - - {!import.meta.env.DEV && ( - - )} +