From 698504a6c8a1619df9e7a6e467bf3e1a1897cbc5 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期一, 06 三月 2023 17:37:29 +0800
Subject: [PATCH] 2023-03-06

---
 src/tabviews/custom/components/card/prop-card/index.jsx |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/tabviews/custom/components/card/prop-card/index.jsx b/src/tabviews/custom/components/card/prop-card/index.jsx
index 87567ec..aac9321 100644
--- a/src/tabviews/custom/components/card/prop-card/index.jsx
+++ b/src/tabviews/custom/components/card/prop-card/index.jsx
@@ -134,7 +134,7 @@
         }, 200)
       }
 
-      if (_config.wrap.datatype === 'dynamic') {
+      if (_config.wrap.datatype === 'dynamic' && this.loaded) {
         this.autoExec()
       }
       if (!_config.wrap.cardType && _data.$$uuid) {
@@ -252,10 +252,10 @@
   autoExec = () => {
     const { config, data } = this.state
 
-    if (!config.wrap.autoExec || data.$$empty) return
+    if (!config.wrap.autoExec) return
 
     setTimeout(() => {
-      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, [data])
+      MKEmitter.emit('triggerBtnId', config.wrap.autoExec, data.$$empty ? [] : [data])
     }, 200)
   }
 

--
Gitblit v1.8.0