From 09cf821fd36a969a417cf022d9df60a6260d134a Mon Sep 17 00:00:00 2001
From: Administrator <15735097584@163.com>
Date: Sun, 13 Mar 2022 17:23:48 +0800
Subject: [PATCH] 修改弹框关闭的问题

---
 hg-monitor-web-base/src/main/resources/static/src/controller/common.js | 14 ++++++++------
 hg-monitor-web-qh/src/main/resources/static/src/controller/common.js   | 14 ++++++++------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/hg-monitor-web-base/src/main/resources/static/src/controller/common.js b/hg-monitor-web-base/src/main/resources/static/src/controller/common.js
index 88fc4d4..d8e1677 100644
--- a/hg-monitor-web-base/src/main/resources/static/src/controller/common.js
+++ b/hg-monitor-web-base/src/main/resources/static/src/controller/common.js
@@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) {
                     id: id,
                     content: laytpl(res.body).render(JSON.stringify(params)),
                     success: function (layero, index) {
-                        if (typeof done==="function") {
-                            done(layero, index);
-                        }else if(done.success){
-                            done.success()
-                        }else {
-                            return
+                        if(done) {
+                            if (typeof done === "function") {
+                                done(layero, index);
+                            } else if (done.success) {
+                                done.success()
+                            } else {
+                                return
+                            }
                         }
                     },
                     yes: function (index, layero) {
diff --git a/hg-monitor-web-qh/src/main/resources/static/src/controller/common.js b/hg-monitor-web-qh/src/main/resources/static/src/controller/common.js
index ef6c61d..c3830f3 100644
--- a/hg-monitor-web-qh/src/main/resources/static/src/controller/common.js
+++ b/hg-monitor-web-qh/src/main/resources/static/src/controller/common.js
@@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) {
                     id: id,
                     content: laytpl(res.body).render(JSON.stringify(params)),
                     success: function (layero, index) {
-                        if (typeof done==="function") {
-                            done(layero, index);
-                        }else if(done.success){
-                            done.success()
-                        }else {
-                            return
+                        if(done) {
+                            if (typeof done === "function") {
+                                done(layero, index);
+                            } else if (done.success) {
+                                done.success()
+                            } else {
+                                return
+                            }
                         }
                     },
                     yes: function (index, layero) {
--
libgit2 0.24.0