Commit 147cb07a authored by 张伯涛's avatar 张伯涛

headers删除

parent e41bdfdc
......@@ -17,9 +17,7 @@ export function login(username, password, code, uuid) {
data: Qs.stringify({
sign: encrypt(data)
}),
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
headers: {}
})
}
// 刷新token
......
......@@ -19,14 +19,11 @@ export function list(query) {
// 删除异常日志
export function delErrLog(data) {
// data = Qs.stringify(data)
data = Qs.stringify(data)
return request({
url: '/monitor/errorLog/delete',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
data: data
})
}
......
......@@ -19,14 +19,11 @@ export function list(query) {
// 删除登录日志
export function delLogininfo(data) {
// data = Qs.stringify(data)
data = Qs.stringify(data)
return request({
url: '/monitor/loginInfo/delete',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
data: data
})
}
......@@ -35,7 +32,7 @@ export function cleanLogininfo(query) {
return request({
url: '/monitor/loginInfo/clean',
method: 'delete',
params: query,
params: query
})
}
......
......@@ -19,14 +19,11 @@ export function list(query) {
// 删除操作日志
export function delOperLog(data) {
// data = Qs.stringify(data)
data = Qs.stringify(data)
return request({
url: '/monitor/operLog/delete',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
data: data
})
}
......
......@@ -24,9 +24,7 @@ export function addPost(data) {
url: '/system/post/add',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
headers: {}
})
}
......@@ -38,9 +36,7 @@ export function updatePost(data) {
url: '/system/post/update/' + businessId,
method: 'put',
data: data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded'
}
headers: {}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment