From 6c28ebe057d292d355ecf0f070fcf3d3e8edac9c Mon Sep 17 00:00:00 2001 From: breno-pereira Date: Sat, 26 Oct 2019 09:18:23 -0300 Subject: [PATCH] refactoring --- pages/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pages/index.vue b/pages/index.vue index e62ca8e19..bad592150 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -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() {