复制、粘贴快捷方式不禁用默认事件
continuous-integration/drone/push Build is passing Details

uat
wangxiaoshuang 2025-05-07 13:39:30 +08:00
parent 3948596014
commit f53412acbf
1 changed files with 15 additions and 9 deletions

View File

@ -1111,20 +1111,26 @@ export default {
e.preventDefault();
}
if (e.ctrlKey && e.key === 'c') {
e.preventDefault();
// e.preventDefault();
if (this.checkList.length > 0 && !this.renameId) {
this.type = 'copy'
this.copy()
}
}
if (e.ctrlKey && e.key === 'v') {
e.preventDefault();
// e.preventDefault();
this.type = 'stickup'
this.stickup()
}
if (e.ctrlKey && e.key === 'x') {
e.preventDefault();
// e.preventDefault();
if (this.checkList.length > 0 && !this.renameId) {
this.type = 'shear'
this.shear()
}
}
},
//
keyup(e) {
@ -1138,8 +1144,8 @@ export default {
mounted() {
document.addEventListener('keydown', this.keydown);
document.addEventListener('keyup', this.keyup);
let table = document.getElementById("auditDocumentTable")
table.addEventListener('click', this.docClick);
// let table = document.getElementById("auditDocumentTable")
document.addEventListener('click', this.docClick);
this.getList()
this.getBreadcrumbData()
},