【fix bug】axios请求,put改为post,delete改为get

This commit is contained in:
zhaoxiao
2023-03-14 10:08:24 +08:00
parent 921e9d20bd
commit 8a45c78a57
43 changed files with 127 additions and 118 deletions
+1 -3
View File
@@ -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
})
}