【fix bug】axios请求,put改为post,delete改为get
This commit is contained in:
@@ -280,10 +280,10 @@ export default {
|
||||
/** 发起新增或修改的请求 */
|
||||
requestAddOrEdit (formData) {
|
||||
let url = this.url.add
|
||||
let method = 'post'
|
||||
const method = 'post'
|
||||
if (this.model.id) {
|
||||
url = this.url.edit
|
||||
method = 'put'
|
||||
// method = 'put'
|
||||
}
|
||||
this.confirmLoading = true
|
||||
httpAction(url, formData, method).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user