【fix bug】axios请求,put改为post,delete改为get
This commit is contained in:
@@ -108,10 +108,11 @@ export default {
|
||||
this.$refs.form.validate((ok) => {
|
||||
if (ok) {
|
||||
that.confirmLoading = true
|
||||
let httpUrl = this.url.add; let method = 'post'
|
||||
let httpUrl = this.url.add
|
||||
const method = 'post'
|
||||
if (this.model.id) {
|
||||
httpUrl = this.url.edit
|
||||
method = 'put'
|
||||
// method = 'put'
|
||||
}
|
||||
|
||||
httpAction(httpUrl, this.model, method).then((res) => {
|
||||
|
||||
Reference in New Issue
Block a user