refactoring
This commit is contained in:
@@ -1531,7 +1531,8 @@ export default {
|
|||||||
this.setRouteQueryState();
|
this.setRouteQueryState();
|
||||||
},
|
},
|
||||||
methodChange() {
|
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() {
|
mounted() {
|
||||||
|
|||||||
Reference in New Issue
Block a user