11 lines
178 B
TypeScript
11 lines
178 B
TypeScript
|
|
export function useCopy() {
|
||
|
|
const copy = (text: string) => {
|
||
|
|
uni.setClipboardData({
|
||
|
|
data: String(text)
|
||
|
|
})
|
||
|
|
}
|
||
|
|
return {
|
||
|
|
copy
|
||
|
|
}
|
||
|
|
}
|