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'); }