1
This commit is contained in:
6
src/utils/helper.ts
Normal file
6
src/utils/helper.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
/**
|
||||
* 一键复制文本
|
||||
*/
|
||||
export async function copyText(text: string) {
|
||||
await navigator.clipboard.writeText(text);
|
||||
}
|
||||
Reference in New Issue
Block a user