Skip to content

Commit 634c879

Browse files
committed
perf: 自动焦点时移动端上的不便
1 parent 57a1d6e commit 634c879

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/chat/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ const footerClass = computed(() => {
454454
455455
onMounted(() => {
456456
scrollToBottom()
457-
if (inputRef.value)
457+
if (inputRef.value && !isMobile.value)
458458
inputRef.value?.focus()
459459
})
460460

0 commit comments

Comments
 (0)