refactoring

This commit is contained in:
breno-pereira
2019-10-26 09:18:23 -03:00
parent db0826d43a
commit 6c28ebe057

View File

@@ -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() {