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 && ( - - )} +