2025-03-27 17:57:33 +08:00

40 lines
1.6 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// http 请求配置项
export default {
//wzk合肥本地测试接口Url
//url: "http://10.4.2.15:5355/WMS/WMS_Webservice.asmx",
//url: "http://192.168.43.9:5355/WMS",
//url: "http://192.168.43.9:44355/WMS",
// 合肥正式服务器接口url
//url: "http://36.7.105.135:8061/WMS",
// 重庆正式服务器接口url
// url: "http://172.22.10.218:22202",
//url: "http://192.168.137.1:17878",
// 本地真机调试1
// url: "http://172.22.10.206:8096",
// url: "http://172.20.10.10:17878",
// url: "http://172.22.54.217:17878", //ip连接
// url: "http://172.22.10.218:22252", 22258
// url: "http://192.168.1.73:32202", // 测试环境
// url: "http://172.22.10.217:22202", // 正式环境1
// url: "http://172.22.10.225:22202", // SAP测试环境
url: "http://localhost:18878",
// 测试服务器接口URL
// url: "http://10.4.2.109:90/WMS/WMS_Webservice.asmx",
// 请求的参数
data: {},
// 设置请求的 headerheader 中不能设置 Referer。
header: {},
// 需大写有效值OPTIONS, GET, HEAD, POST, PUT, DELETE, TRACE, CONNECT
method: "POST",
// json 如果设为json会尝试对返回的数据做一次 JSON.parse
dataType: "json",
// text 设置响应的数据类型。合法值text、arraybuffer 1.7.0
responseType: "text",
// 收到开发者服务成功返回的回调函数
success() {},
// 接口调用失败的回调函数
fail() {},
// 接口调用结束的回调函数(调用成功、失败都会执行)
complete() {},
}