From 0d04dedde1fa65a2c7c54fa343c70fe889573bda Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 15 May 2023 18:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=82=B9=E5=87=BB=E5=8F=91?= =?UTF-8?q?=E9=80=81=E5=90=8E=E4=B8=8D=E8=83=BD=E6=B8=85=E7=A9=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/chatInput.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/chatInput.vue b/src/components/chatInput.vue index 2b04c22..54a0d7f 100644 --- a/src/components/chatInput.vue +++ b/src/components/chatInput.vue @@ -18,6 +18,11 @@ export default { text: "" } }, + watch: { + modelValue(v) { + this.text != v && (this.text = v) + } + }, methods: { handleShortKey(e) { if (e.ctrlKey && e.keyCode == 13) {