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