fix: the clipboard.ts for copying failure.

This commit is contained in:
古大羊 2024-04-29 12:02:23 +08:00
parent 236ca637f9
commit 0159c8d51d

View File

@ -51,7 +51,6 @@ export function copy(text: string) {
textarea.select(); textarea.select();
try { try {
document.execCommand("copy"); document.execCommand("copy");
document.body.removeChild(textarea);
resolve(); resolve();
} catch (e) { } catch (e) {
document.body.removeChild(textarea); document.body.removeChild(textarea);