chore: 使用legacy来保证copy的兼容性
This commit is contained in:
parent
6e4b7f4695
commit
02d42de133
@ -344,7 +344,11 @@ function handleUpdateAssignee(userList: User[]) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const { copy } = useClipboard();
|
/**
|
||||||
|
* 不加legacy在本地开发没有问题
|
||||||
|
* 打包后在一些设备会无法复制 使用legacy来保证兼容性
|
||||||
|
*/
|
||||||
|
const { copy } = useClipboard({ legacy: true });
|
||||||
async function handleCopy(text: string) {
|
async function handleCopy(text: string) {
|
||||||
await copy(text);
|
await copy(text);
|
||||||
message.success('复制成功');
|
message.success('复制成功');
|
||||||
|
Loading…
Reference in New Issue
Block a user