static.ams.quickapi.entity.API.js Maven / Gradle / Ivy
The newest version!
userBlockMap["quickapi|clazz|API"] = {
"operations": {
"executeHttpRequest": {
"type": "button",
"label": "执行请求",
"props": {
"type": "primary",
},
"event": "executeHttpRequest"
},
},
"actions":{
executeHttpRequest(params){
let row = params.$prevReturn;
let contentType = row["contentType"];
if(null!=contentType&&contentType!==""){
switch (row["contentType"]) {
case "application/x-www-form-urlencoded":{contentType = "form";}break;
case "application/json":{contentType = "json";}break;
default:{
this.$message.error("不支持执行该类型请求!类型:"+contentType);
}
}
}else{
contentType = "form";
}
let headerMap = row["headerMap"];
try {
let list = JSON.parse(localStorage.getItem("globalHeader"));
for(let i=0;i
© 2015 - 2025 Weber Informatics LLC | Privacy Policy