feat: 支持使用Ctrl+C复制多选内容

This commit is contained in:
ZiuChen
2022-09-09 15:06:16 +08:00
parent 424b1c7870
commit 282d7c91b0

View File

@@ -240,7 +240,7 @@ onMounted(() => {
?.scrollIntoView({ block: 'nearest', inline: 'nearest' }) ?.scrollIntoView({ block: 'nearest', inline: 'nearest' })
} }
} else if (isCopy) { } else if (isCopy) {
if (props.fullData.data === '') { if (!props.fullData.data) {
// 如果侧栏中有数据 证明侧栏是打开的 不执行复制 // 如果侧栏中有数据 证明侧栏是打开的 不执行复制
if (!props.isMultiple) { if (!props.isMultiple) {
window.copy(props.showList[activeIndex.value]) window.copy(props.showList[activeIndex.value])