fix: prevent overwrite of content type (#1703)
Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
This commit is contained in:
@@ -107,6 +107,9 @@ export default {
|
|||||||
text() {
|
text() {
|
||||||
this.$emit("input", this.text)
|
this.$emit("input", this.text)
|
||||||
},
|
},
|
||||||
|
value(newValue) {
|
||||||
|
this.text = newValue
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|||||||
@@ -818,8 +818,8 @@ export default {
|
|||||||
},
|
},
|
||||||
method() {
|
method() {
|
||||||
this.contentType = ["POST", "PUT", "PATCH", "DELETE"].includes(this.method)
|
this.contentType = ["POST", "PUT", "PATCH", "DELETE"].includes(this.method)
|
||||||
? "application/json"
|
? this.contentType
|
||||||
: ""
|
: "application/json"
|
||||||
},
|
},
|
||||||
preRequestScript(val, oldVal) {
|
preRequestScript(val, oldVal) {
|
||||||
this.uri = this.uri
|
this.uri = this.uri
|
||||||
|
|||||||
Reference in New Issue
Block a user