From bbafa933d0d394abae9d67722605e64257299da0 Mon Sep 17 00:00:00 2001 From: Renpc-kilig <308442850@qq.com> Date: Tue, 7 Dec 2021 15:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=AC=A1=E7=82=B9=E5=87=BB=E4=B8=8B?= =?UTF-8?q?=E6=B4=BE=E6=A8=A1=E6=9D=BF=E6=97=B6=EF=BC=8C=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=A8=A1=E6=9D=BFID=E4=B8=BA=E7=A9=BAbug=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/templates/distribute/save.html | 4 +++- src/main/resources/templates/distribute/update.html | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/resources/templates/distribute/save.html b/src/main/resources/templates/distribute/save.html index 51305f3..4fd4490 100644 --- a/src/main/resources/templates/distribute/save.html +++ b/src/main/resources/templates/distribute/save.html @@ -489,7 +489,9 @@ width: '1040px', height: '98%', onClose: function(data) { - templateObj = top.dialog.dialogData.templateObj; + if(!$.isEmptyObject(top.dialog.dialogData.templateObj)) { + templateObj = top.dialog.dialogData.templateObj; + } if(!$.isEmptyObject(templateObj)) { $('#taskListDiv').hide(); getTaskRateMsg(templateObj.taskRateId); diff --git a/src/main/resources/templates/distribute/update.html b/src/main/resources/templates/distribute/update.html index 6f0fab1..7856770 100644 --- a/src/main/resources/templates/distribute/update.html +++ b/src/main/resources/templates/distribute/update.html @@ -471,7 +471,9 @@ width: '1040px', height: '98%', onClose: function(data) { - templateObj = top.dialog.dialogData.templateObj; + if(!$.isEmptyObject(top.dialog.dialogData.templateObj)) { + templateObj = top.dialog.dialogData.templateObj; + } if(!$.isEmptyObject(templateObj)) { $('#taskListDiv').hide(); listList = [];