From ef6a2fb3b547190f35b3baf99280eaead42b4f57 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期五, 09 五月 2025 17:09:49 +0800
Subject: [PATCH] fix:y优化回调处理,和http请求超时处理

---
 ruoyi-ui/src/views/system/callbacklog/index.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/ruoyi-ui/src/views/system/callbacklog/index.vue b/ruoyi-ui/src/views/system/callbacklog/index.vue
index 1a0b084..0735694 100644
--- a/ruoyi-ui/src/views/system/callbacklog/index.vue
+++ b/ruoyi-ui/src/views/system/callbacklog/index.vue
@@ -337,11 +337,22 @@
     handleRetry(row) {
       const id = row.id;
       this.$modal.confirm('鏄惁纭閲嶈瘯璇ュ洖璋冭褰曪紵').then(function() {
-        return retryCallbacklog(id);
+        // 鍒涘缓甯︽湁瓒呮椂璁剧疆鐨勮姹傞厤缃�
+        const config = {
+          timeout: 60000  // 璁剧疆60绉掕秴鏃�
+        };
+        return retryCallbacklog(id, config);
       }).then(() => {
         this.getList();
         this.$modal.msgSuccess("瑙﹀彂閲嶈瘯鎴愬姛");
-      }).catch(() => {});
+      }).catch((error) => {
+        // 娣诲姞閿欒澶勭悊
+        if (error.message.includes('timeout')) {
+          this.$modal.msgError("璇锋眰瓒呮椂锛岃绋嶅悗閲嶈瘯");
+        } else {
+          this.$modal.msgError("閲嶈瘯澶辫触锛�" + error.message);
+        }
+      });
     },
     /** 鎵归噺瑙﹀彂鍥炶皟閲嶈瘯 */
     handleBatchRetry() {

--
Gitblit v1.9.1