cuiqian2004
2025-09-19 d8743368ffda9bc0fb2c6818f695a9a6b1079e57
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|| ""
                  });
               }
            },