This commit is contained in:
2025-04-26 20:42:05 +08:00
parent 77edc576ea
commit aa33643982
6 changed files with 39 additions and 22 deletions

View File

@@ -13,7 +13,9 @@ async function handleCopy(text: string) {
await navigator.clipboard.writeText(text);
toast.success("复制成功");
} catch (error) {
toast.error("复制失败");
if (error instanceof Error) {
toast.error(`复制失败 ${error.message}`);
}
}
}