diff --git a/docker-compose.yml b/docker-compose.yml index 619dbb25b..d451b2ad3 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -176,7 +176,7 @@ services: okr: container_name: "dootask-okr-${APP_ID}" - image: "kuaifan/doookr:0.0.21" + image: "kuaifan/doookr:0.0.22" environment: TZ: "${TIMEZONE:-PRC}" DOO_TASK_URL: "http://${APP_IPPR}.3" diff --git a/language/original-web.txt b/language/original-web.txt index e468697f1..9eaaf2df4 100644 --- a/language/original-web.txt +++ b/language/original-web.txt @@ -1389,4 +1389,6 @@ APP推送 文件上传限制 包含消息发送的文件 特殊设置 -打包列表 \ No newline at end of file +打包列表 +使用独立的发送按钮 +开启后,键盘上的发送按钮会被替换成换行 \ No newline at end of file diff --git a/resources/assets/js/pages/manage/components/ChatInput/index.vue b/resources/assets/js/pages/manage/components/ChatInput/index.vue index 1452765b8..2f0a6c21c 100755 --- a/resources/assets/js/pages/manage/components/ChatInput/index.vue +++ b/resources/assets/js/pages/manage/components/ChatInput/index.vue @@ -492,6 +492,11 @@ export default { } return null; }, + + separateSendButton() { + return $A.jsonParse(window.localStorage.getItem("__keyboard:data__"))?.separate_send_button === 'open'; + }, + }, watch: { // Watch content change @@ -663,6 +668,11 @@ export default { shortKey: true, handler: _ => { if (!this.isEnterSend) { + if (this.separateSendButton) { + const length = this.quill.getSelection(true).index; + this.quill.insertText(length, "\r\n"); + return false; + } this.onSend(); return false; } @@ -674,6 +684,11 @@ export default { shiftKey: false, handler: _ => { if (this.isEnterSend) { + if (this.separateSendButton) { + const length = this.quill.getSelection(true).index; + this.quill.insertText(length, "\r\n"); + return false; + } this.onSend(); return false; } @@ -786,7 +801,9 @@ export default { this.quill.insertText(length, "\r\n"); } }); - this.quill.root.setAttribute('enterkeyhint', 'send') + if (!this.separateSendButton) { + this.quill.root.setAttribute('enterkeyhint', 'send') + } }) // Ready event diff --git a/resources/assets/js/pages/manage/setting/components/SystemSetting.vue b/resources/assets/js/pages/manage/setting/components/SystemSetting.vue index 3d493ed1c..4dd8bb5c6 100644 --- a/resources/assets/js/pages/manage/setting/components/SystemSetting.vue +++ b/resources/assets/js/pages/manage/setting/components/SystemSetting.vue @@ -158,7 +158,7 @@
{{$L('是否将消息中的网络图片保存到本地服务器。')}}
- +