From 23823325e69fa23df28385deb4d94c31fe2dcb1d Mon Sep 17 00:00:00 2001 From: xiaozhu <2395895331@qq.com> Date: Mon, 17 Aug 2026 17:31:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:writeText=E4=B8=8D=E5=8F=AF=E7=94=A8?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/VersionReceiptModal.tsx | 7 ++--- .../app/features/platform/ScriptsPage.tsx | 3 +- frontend/app/lib/clipboard.ts | 31 +++++++++++++++++++ 3 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 frontend/app/lib/clipboard.ts diff --git a/frontend/app/components/platform/VersionReceiptModal.tsx b/frontend/app/components/platform/VersionReceiptModal.tsx index 1b7a37f..21396d9 100644 --- a/frontend/app/components/platform/VersionReceiptModal.tsx +++ b/frontend/app/components/platform/VersionReceiptModal.tsx @@ -1,5 +1,6 @@ import Icon from "../common/Icon"; import type { StableVersion } from "../../services/api"; +import { copyToClipboard } from "../../lib/clipboard"; type VersionReceiptModalProps = { publishedVersion: StableVersion | null; @@ -31,10 +32,8 @@ export function VersionReceiptModal({ {publishedVersion.versions_id}