Skip to content

Commit

Permalink
feat: add clipboard function
Browse files Browse the repository at this point in the history
  • Loading branch information
wjw-gavin committed Aug 31, 2023
1 parent 6b08f3a commit de03c75
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/clipboard.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/**
* @description 剪贴板
*/

export const clipboard = (text: string) => navigator.clipboard.writeText(text)

0 comments on commit de03c75

Please sign in to comment.