From 9ca6cb4fe45a7a36ac6873a396c5c47564ab6bb7 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Tue, 15 Nov 2022 22:30:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9C=AA=E8=81=8A=E5=A4=A9=E8=BF=87?= =?UTF-8?q?=E7=9A=84=E4=BB=BB=E5=8A=A1=E6=97=A0=E6=B3=95=E5=8F=91=E9=80=81?= =?UTF-8?q?=E8=81=8A=E5=A4=A9=E8=A1=A8=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../assets/js/pages/manage/components/TaskDetail.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index 07e5266b8..c2b630232 100644 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -1267,7 +1267,7 @@ export default { // if ($A.isSubElectron) { this.resizeDialog().then(() => { - this.sendDialogMsg(); + this.sendDialogMsg(msgText); }); } else { this.$nextTick(() => { @@ -1288,7 +1288,7 @@ export default { } this.$store.dispatch('openDialog', data.dialog_id) } else { - this.sendDialogMsg(); + this.sendDialogMsg(msgText); } }); } @@ -1303,7 +1303,7 @@ export default { }); }, - sendDialogMsg() { + sendDialogMsg(msgText = null) { if (this.msgFile.length > 0) { this.$refs.dialog.sendFileMsg(this.msgFile.map(file => Object.assign(file, { ajaxExtraData: { @@ -1312,6 +1312,8 @@ export default { }))); } else if (this.msgText) { this.$refs.dialog.sendMsg(this.msgText); + } else if (typeof msgText === 'string' && msgText) { + this.$refs.dialog.sendMsg(msgText); } this.msgFile = []; this.msgText = "";