From 9ca821c16b1ab601c3843a86df1edee076008303 Mon Sep 17 00:00:00 2001 From: Equim Date: Fri, 31 Mar 2023 02:14:38 +0800 Subject: [PATCH] fix text being reset after edit submit --- src/views/chat/components/Message/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/chat/components/Message/index.vue b/src/views/chat/components/Message/index.vue index e7ca3862c4..0b58e63f90 100644 --- a/src/views/chat/components/Message/index.vue +++ b/src/views/chat/components/Message/index.vue @@ -99,7 +99,7 @@ function handleEdit() { } function handleEditSubmit(text: string) { - origTextRef.value = '' + origTextRef.value = null emit('editSubmit', text) edit.value = false }