fix: 系统设置-创建项目,取消回车保存功能 (#1329)
This commit is contained in:
parent
ecf4d9437b
commit
31c00e1271
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue