diff --git a/components/smart/AutoComplete.vue b/components/smart/AutoComplete.vue index 6def418a0..e89976c08 100644 --- a/components/smart/AutoComplete.vue +++ b/components/smart/AutoComplete.vue @@ -107,6 +107,9 @@ export default { text() { this.$emit("input", this.text) }, + value(newValue) { + this.text = newValue + } }, mounted() { diff --git a/pages/index.vue b/pages/index.vue index 907ab9e4c..aab8bbf81 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -818,8 +818,8 @@ export default { }, method() { this.contentType = ["POST", "PUT", "PATCH", "DELETE"].includes(this.method) - ? "application/json" - : "" + ? this.contentType + : "application/json" }, preRequestScript(val, oldVal) { this.uri = this.uri