refactoring
This commit is contained in:
parent
db0826d43a
commit
6c28ebe057
1 changed files with 2 additions and 1 deletions
|
|
@ -1531,7 +1531,8 @@ export default {
|
|||
this.setRouteQueryState();
|
||||
},
|
||||
methodChange() {
|
||||
this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' })
|
||||
// this.$store.commit('setState', { 'value': ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '', 'attribute': 'contentType' })
|
||||
this.contentType = ["POST", "PUT", "PATCH"].includes(this.method) ? 'application/json' : '';
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue