fix: 移除复制并粘贴的复制成功toast

This commit is contained in:
ZiuChen 2022-10-28 19:45:59 +08:00
parent 2c17bd09d1
commit d03657a1fe

View File

@ -178,11 +178,11 @@ const handleItemClick = (ev, item) => {
} else if (button === 2) { } else if (button === 2) {
// //
window.copy(item) window.copy(item)
ElMessage({
message: '复制成功',
type: 'success'
})
} }
ElMessage({
message: '复制成功',
type: 'success'
})
} }
} }
const activeIndex = ref(0) const activeIndex = ref(0)
@ -241,10 +241,6 @@ const keyDownCallBack = (e) => {
console.log('isEnter') console.log('isEnter')
window.copy(props.showList[activeIndex.value]) window.copy(props.showList[activeIndex.value])
window.paste() window.paste()
ElMessage({
message: '复制成功',
type: 'success'
})
} else { } else {
emit('onMultiCopyExecute', true) emit('onMultiCopyExecute', true)
} }