Skip to content

Commit

Permalink
it works
Browse files Browse the repository at this point in the history
  • Loading branch information
SchneeHertz committed Aug 25, 2023
1 parent 0531693 commit 58232dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ const sendText = (event) => {
})
nextTick(() => scrollToBottom('message-list'))
inputText.value = ''
textareaElement.value = ''
textareaElement.focus()
}
const scrollToBottom = (id) => {
const element = document.getElementById(id)
Expand Down Expand Up @@ -108,7 +106,7 @@ const switchAudio = () => {
<pre v-html="message.text" :class="{'message-right-text': [ADMIN_NAME, `(${ADMIN_NAME})`].includes(message.from)}"></pre>
</n-card>
</n-list>
<n-input class="input-text" @update:value="updateInputText" @keydown.enter="sendText" ref="inputArea"
<n-input class="input-text" :value="inputText" @update:value="updateInputText" @keydown.enter="sendText" ref="inputArea"
type="textarea" :autosize="{ minRows: 1, maxRows: 6 }"></n-input>
</n-gi>
<n-gi :offset="1" :span="22" id="function-button">
Expand Down

0 comments on commit 58232dc

Please sign in to comment.