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

headers删除

parent e41bdfdc
...@@ -17,9 +17,7 @@ export function login(username, password, code, uuid) { ...@@ -17,9 +17,7 @@ export function login(username, password, code, uuid) {
data: Qs.stringify({ data: Qs.stringify({
sign: encrypt(data) sign: encrypt(data)
}), }),
headers: { headers: {}
'Content-Type': 'application/x-www-form-urlencoded'
}
}) })
} }
// 刷新token // 刷新token
......
...@@ -19,14 +19,11 @@ export function list(query) { ...@@ -19,14 +19,11 @@ export function list(query) {
// 删除异常日志 // 删除异常日志
export function delErrLog(data) { export function delErrLog(data) {
// data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/monitor/errorLog/delete', url: '/monitor/errorLog/delete',
method: 'post', method: 'post',
data, data: data
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
}) })
} }
......
...@@ -19,14 +19,11 @@ export function list(query) { ...@@ -19,14 +19,11 @@ export function list(query) {
// 删除登录日志 // 删除登录日志
export function delLogininfo(data) { export function delLogininfo(data) {
// data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/monitor/loginInfo/delete', url: '/monitor/loginInfo/delete',
method: 'post', method: 'post',
data, data: data
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
}) })
} }
...@@ -35,7 +32,7 @@ export function cleanLogininfo(query) { ...@@ -35,7 +32,7 @@ export function cleanLogininfo(query) {
return request({ return request({
url: '/monitor/loginInfo/clean', url: '/monitor/loginInfo/clean',
method: 'delete', method: 'delete',
params: query, params: query
}) })
} }
......
...@@ -19,14 +19,11 @@ export function list(query) { ...@@ -19,14 +19,11 @@ export function list(query) {
// 删除操作日志 // 删除操作日志
export function delOperLog(data) { export function delOperLog(data) {
// data = Qs.stringify(data) data = Qs.stringify(data)
return request({ return request({
url: '/monitor/operLog/delete', url: '/monitor/operLog/delete',
method: 'post', method: 'post',
data, data: data
headers: {
'Content-Type': 'application/json;charset=UTF-8'
}
}) })
} }
......
...@@ -24,9 +24,7 @@ export function addPost(data) { ...@@ -24,9 +24,7 @@ export function addPost(data) {
url: '/system/post/add', url: '/system/post/add',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {}
'Content-Type': 'application/x-www-form-urlencoded'
}
}) })
} }
...@@ -38,9 +36,7 @@ export function updatePost(data) { ...@@ -38,9 +36,7 @@ export function updatePost(data) {
url: '/system/post/update/' + businessId, url: '/system/post/update/' + businessId,
method: 'put', method: 'put',
data: data, data: data,
headers: { headers: {}
'Content-Type': 'application/x-www-form-urlencoded'
}
}) })
} }
......
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