fix: clear input field after sending message in CardChat.vue

This commit is contained in:
IceyWu 2024-12-13 15:20:39 +08:00
parent 8a24d11a65
commit 1e4c8cc3e3
2 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ const selectedUsers = ref<User[]>([])
role: 'user', role: 'user',
content: input, content: input,
}) })
input = ''
}" }"
> >
<Input v-model="input" placeholder="Type a message..." class="flex-1" /> <Input v-model="input" placeholder="Type a message..." class="flex-1" />

View File

@ -121,6 +121,7 @@ const selectedUsers = ref<User[]>([])
role: 'user', role: 'user',
content: input, content: input,
}) })
input = ''
}" }"
> >
<Input v-model="input" placeholder="Type a message..." class="flex-1" /> <Input v-model="input" placeholder="Type a message..." class="flex-1" />