【fix bug】axios请求,put改为post,delete改为get
This commit is contained in:
@@ -105,12 +105,10 @@ export function getPermissions (parameter) {
|
||||
})
|
||||
}
|
||||
|
||||
// id == 0 add post
|
||||
// id != 0 update put
|
||||
export function saveService (parameter) {
|
||||
return axios({
|
||||
url: api.service,
|
||||
method: parameter.id + '' === '0' ? 'post' : 'put',
|
||||
method: 'post',
|
||||
data: parameter
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user