| | |
| | | // "Content-Type": "application/json;charset=UTF-8" |
| | | // }, |
| | | method: "GET", |
| | | dataType: "json" |
| | | dataType: "json", |
| | | |
| | | }, |
| | | addLog(item) { |
| | | const list = session.getValue("request_log") || [] |
| | |
| | | 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") || {} |
| | |
| | | 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) |
| | | } |
| | |
| | | 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) |
| | | } |
| | |
| | | } else { |
| | | |
| | | reject({ |
| | | msg: ret.msg || "" |
| | | msg: ret.msg || ret.message|| "" |
| | | }); |
| | | } |
| | | }, |