整理 dept、post 模块的 url 地址
This commit is contained in:
@@ -38,7 +38,7 @@ export function addPost(data) {
|
||||
export function updatePost(data) {
|
||||
return request({
|
||||
url: '/system/post/update',
|
||||
method: 'post',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
@@ -47,7 +47,7 @@ export function updatePost(data) {
|
||||
export function delPost(postId) {
|
||||
return request({
|
||||
url: '/system/post/delete?id=' + postId,
|
||||
method: 'post'
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user