From d8743368ffda9bc0fb2c6818f695a9a6b1079e57 Mon Sep 17 00:00:00 2001
From: cuiqian2004 <cuiqian2004@163.com>
Date: 星期五, 19 九月 2025 18:22:15 +0800
Subject: [PATCH] laster
---
api/request.js | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/api/request.js b/api/request.js
index dd77289..7e3c7d5 100644
--- a/api/request.js
+++ b/api/request.js
@@ -8,7 +8,8 @@
// "Content-Type": "application/json;charset=UTF-8"
// },
method: "GET",
- dataType: "json"
+ dataType: "json",
+
},
addLog(item) {
const list = session.getValue("request_log") || []
@@ -28,7 +29,7 @@
return
}
list.unshift(item)
- if (list.length > 1000) {
+ if (list.length > 512) {
const oldItem = list.pop()
if (oldItem.data_key) {
const maxData = session.getValue("request_log_max_data") || {}
@@ -47,7 +48,7 @@
options.method = options.method || this.common.method;
options.dataType = options.dataType || this.common.dataType;
- if(options.url.indexOf("get_agv_state") < 0)
+ if(options.url.indexOf("get_agv_state") < 0 && options.url.indexOf("laser_data") < 0)
{
console.log("url", options.url, options.data)
}
@@ -60,7 +61,7 @@
method: options.method,
dataType: options.dataType,
success: (result) => {
- if(options.url.indexOf("get_agv_state") < 0)
+ if(options.url.indexOf("get_agv_state") < 0 && options.url.indexOf("laser_data") < 0)
{
console.log("result", result)
}
@@ -121,7 +122,7 @@
} else {
reject({
- msg: ret.msg || ""
+ msg: ret.msg || ret.message|| ""
});
}
},
--
Gitblit v1.9.1