From 8a57945cd28a3e32ff1e86e13ce987d21c92e853 Mon Sep 17 00:00:00 2001 From: K-hermes Date: Sat, 15 Aug 2026 23:50:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=94=B9=E4=B8=BA=E5=A4=8D=E5=88=B6Tag?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 按钮文字: 📋 复制配置 → 📋 复制 Tag - 函数名称: copyConfig() → copyTag() - 功能逻辑: 直接复制tag字符串,移除API调用 - 提示文案: 配置已复制到剪贴板 → Tag已复制到剪贴板 --- web/index.html | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/web/index.html b/web/index.html index 4e4766c..ed72fdf 100644 --- a/web/index.html +++ b/web/index.html @@ -648,7 +648,7 @@
- +
@@ -734,15 +734,12 @@ } } - // 复制配置 - async function copyConfig(tag) { + // 复制 Tag + async function copyTag(tag) { try { - const response = await fetch(`/api/data/copy/${tag}`); - const data = await response.json(); - - const success = await copyToClipboard(data.copy_text); + const success = await copyToClipboard(tag); if (success) { - showToast('配置已复制到剪贴板'); + showToast('Tag 已复制到剪贴板'); } else { showToast('复制失败,请手动选择复制', 'error'); }