【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
@@ -131,13 +131,13 @@ export default {
if (valid) {
that.confirmLoading = true
let httpurl = ''
let method
const method = 'post'
if (!this.model.id) {
httpurl += this.url.add
method = 'post'
// method = 'post'
} else {
httpurl += this.url.edit
method = 'put'
// method = 'put'
}
httpAction(httpurl, this.model, method).then((res) => {