fix: 系统设置-创建项目,取消回车保存功能 (#1329)

This commit is contained in:
Coooder-X 2021-02-01 15:51:33 +08:00 committed by chenjianxing
parent ecf4d9437b
commit 31c00e1271
1 changed files with 0 additions and 16 deletions

View File

@ -270,22 +270,6 @@
openEnvironmentConfig(project) {
this.$refs.environmentConfig.open(project.id);
},
handleEvent(event) {
let enter = event.keyCode;
let ctrl = event.ctrlKey;
let shift = event.shiftKey;
let alt = event.altKey;
if(enter === 13 && ctrl && !shift && !alt) {
//ctrl + enter
this.form.description += '\n';
}
if(enter === 13 && !ctrl && shift && !alt) {
//shift + enter
}
if(enter === 13 && !ctrl && !shift && !alt) {
this.submit('form')
}
},
},
created() {
document.addEventListener('keydown', this.handleEvent)