mirror of
https://github.com/yudaocode/yudao-ui-admin-vue3.git
synced 2026-04-23 22:38:37 +00:00
🎈 perf: 优化 copy 兼容性
This commit is contained in:
@@ -180,7 +180,7 @@ const handleFiles = (datas: CodegenApi.CodegenPreviewVO[]) => {
|
||||
|
||||
/** 复制 **/
|
||||
const copy = async (text: string) => {
|
||||
const { copy, copied, isSupported } = useClipboard({ source: text })
|
||||
const { copy, copied, isSupported } = useClipboard({ legacy: true, source: text })
|
||||
if (!isSupported) {
|
||||
message.error(t('common.copyError'))
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user