From cdd5b449130ea4d7223fde4f414a11a7d0c33d6d Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 07 三月 2024 17:52:16 +0800
Subject: [PATCH] 2024-03-07

---
 src/tabviews/custom/components/share/tabtransfer/index.jsx |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/tabviews/custom/components/share/tabtransfer/index.jsx b/src/tabviews/custom/components/share/tabtransfer/index.jsx
index 7c061a0..2523935 100644
--- a/src/tabviews/custom/components/share/tabtransfer/index.jsx
+++ b/src/tabviews/custom/components/share/tabtransfer/index.jsx
@@ -127,6 +127,18 @@
 
     let param = getStructuredParams(params, config, BID)
 
+    if (config.$cache && config.$time) {
+      Api.getLCacheConfig(params[0].uuid, config.$time, BID).then(res => {
+        if (!res.valid) {
+          this.getMainData(param, params, config.uuid)
+        }
+      })
+    } else {
+      this.getMainData(param, params, config.uuid)
+    }
+  }
+
+  getMainData = (param, params, tabId) => {
     Api.genericInterface(param).then(result => {
       if (result.status) {
         if (result.message) {
@@ -151,11 +163,15 @@
           window.GLOB.SyncData.set(item.name, _data)
         })
 
-        MKEmitter.emit('transferSyncData', config.uuid)
+        MKEmitter.emit('transferSyncData', tabId)
       } else {
-        MKEmitter.emit('transferSyncData', config.uuid)
+        MKEmitter.emit('transferSyncData', tabId)
 
         if (!result.message) return
+
+        if (/灏嗘埅鏂瓧绗︿覆鎴栦簩杩涘埗鏁版嵁/ig.test(result.message)) {
+          result.message = result.message + '璇锋鏌ュ瓧娈甸泦'
+        }
         if (result.ErrCode === 'N') {
           Modal.error({
             title: result.message,

--
Gitblit v1.8.0