diff --git a/src/clipboard.ts b/src/clipboard.ts new file mode 100644 index 0000000..88178ea --- /dev/null +++ b/src/clipboard.ts @@ -0,0 +1,5 @@ +/** + * @description 剪贴板 + */ + +export const clipboard = (text: string) => navigator.clipboard.writeText(text)