From 2ae980243b7ad705dea575eadcfc4cf4e24073bd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 17 五月 2022 22:57:19 +0800
Subject: [PATCH] Merge branch 'master' into positec

---
 src/tabviews/zshare/automatic/index.jsx |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/tabviews/zshare/automatic/index.jsx b/src/tabviews/zshare/automatic/index.jsx
index 6644e5e..c020117 100644
--- a/src/tabviews/zshare/automatic/index.jsx
+++ b/src/tabviews/zshare/automatic/index.jsx
@@ -129,7 +129,13 @@
             let node = document.querySelector('.ant-modal-confirm-btns >.ant-btn-primary')
             node && node.click()
           } else if (autoMatic.OpenType === 'pop') {
-            MKEmitter.emit('triggerBtnPopSubmit', autoMatic.action)
+            let node = document.querySelector('.ant-modal-confirm-btns >.ant-btn-primary')
+
+            if (node) {
+              node.click()
+            } else {
+              MKEmitter.emit('triggerBtnPopSubmit', autoMatic.action)
+            }
           }
         }, delay)
       }

--
Gitblit v1.8.0