Post
$http
.post("http://47.244.175.166:8086/api/System/AddApi",{
ActionName: this.form.ActionName,
Controller: this.form.Controller,
Action: this.form.Action,
Parameters: this.form.Parameters,
RequestType: this.form.RequestType,
Memo: this.form.Memo
},{
headers:{
token:this.token
}
})
.then(res => {
console.log(res)
})
Git
$http
.get("http://47.244.175.166:8086/api/System/GetApis", {
params: {
controllername: this.jiss.input1,
action: this.jiss.input2,
pageNum: val,
numPerPage: 2,
orderField: "",
orderDirection: ""
},
headers: {
Token: this.token }
})
.then(res => {
this.tableData = JSON.parse(res.data).Data.Apis;
console.log(res)
});