From a35ff33e36f3271fd0d1564c9207ba96631e1fa1 Mon Sep 17 00:00:00 2001 From: Nixevol Date: Mon, 1 Jun 2026 11:59:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4API=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E9=87=8D=E5=A4=8D=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/project_context.md | 6 ++++++ frontend/src/components/ApiDocs.vue | 12 +----------- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/docs/project_context.md b/docs/project_context.md index c9905d0..7fa9bc6 100644 --- a/docs/project_context.md +++ b/docs/project_context.md @@ -587,3 +587,9 @@ - The per-row operation dropdown now keeps edit, enable/disable, regenerate, and delete actions; copying is surfaced beside the Token value for faster repeated use. - Build verification: `npm run build` passed with only the existing Vite large chunk warning. - Follow-up UI adjustment: the eye/copy buttons now sit immediately after the Token text instead of being pushed to the far right, and Token rows show `created_at` in the metadata area. + +## 2026-06-01: API documentation toolbar cleanup + +- `frontend/src/components/ApiDocs.vue` no longer registers a page-header `copy sample` action, avoiding duplicate `复制传参示例` buttons on the API documentation page. +- The API documentation card still keeps its local toolbar actions: `复制传参示例` and `OpenAPI JSON`. +- Verification performed: `npm run build` passed, and generated frontend build output was removed after verification. diff --git a/frontend/src/components/ApiDocs.vue b/frontend/src/components/ApiDocs.vue index 9a15641..6aa22de 100644 --- a/frontend/src/components/ApiDocs.vue +++ b/frontend/src/components/ApiDocs.vue @@ -20,13 +20,12 @@