From 46168fbb7c925b0ec04def176095e967720e684a Mon Sep 17 00:00:00 2001
From: chen.llin <1442464845@qq.comm>
Date: 星期五, 16 一月 2026 15:22:07 +0800
Subject: [PATCH] agv查询修复

---
 src/main/webapp/static/js/taskLog/taskLog.js |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/src/main/webapp/static/js/taskLog/taskLog.js b/src/main/webapp/static/js/taskLog/taskLog.js
index 231f2bb..680728e 100644
--- a/src/main/webapp/static/js/taskLog/taskLog.js
+++ b/src/main/webapp/static/js/taskLog/taskLog.js
@@ -44,11 +44,20 @@
             pageSize: 'limit'
         },
         parseData: function (res) {
+            // 瀹夊叏妫�鏌ワ紝闃叉res.data涓簎ndefined
+            if (!res || !res.data) {
+                return {
+                    'code': res ? res.code : 500,
+                    'msg': res ? res.msg : '鏁版嵁鏍煎紡閿欒',
+                    'count': 0,
+                    'data': []
+                };
+            }
             return {
                 'code': res.code,
                 'msg': res.msg,
-                'count': res.data.total,
-                'data': res.data.records
+                'count': res.data.total || 0,
+                'data': res.data.records || []
             }
         },
         response: {

--
Gitblit v1.9.1