From 0a6fa2431e8c7f79fc74f6a61aa4817087237082 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 6 Jan 2022 08:27:32 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BB=BB=E5=8A=A1=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E7=AA=97=E5=8F=A3=E5=85=89=E6=A0=87=E5=9C=A8=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E5=8F=AF=E4=BD=BF=E7=94=A8ctrl+s=EF=BC=88com?= =?UTF-8?q?mand+s=EF=BC=89=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../js/pages/manage/components/TaskDetail.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index e783e37f..2f47c6a4 100644 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -164,6 +164,7 @@ :option-full="taskOptionFull" :placeholder="$L('详细描述...')" @on-blur="updateData('content')" + @editorSave="updateData('content')" inline/>
@@ -798,12 +799,16 @@ export default { }, onNameKeydown(e) { - if (e.keyCode === 13) { - if (e.shiftKey) { - return; + if (e.keyCode === 83) { + if (e.metaKey || e.ctrlKey) { + e.preventDefault(); + this.updateData('name'); + } + } else if (e.keyCode === 13) { + if (!e.shiftKey) { + e.preventDefault(); + this.updateData('name'); } - e.preventDefault(); - this.updateData('name'); } },