perf: 自动焦点时移动端上的不便

This commit is contained in:
ChenZhaoYu
2023-03-23 20:51:20 +08:00
parent 57a1d6e3cd
commit 634c879108

View File

@@ -454,7 +454,7 @@ const footerClass = computed(() => {
onMounted(() => {
scrollToBottom()
if (inputRef.value)
if (inputRef.value && !isMobile.value)
inputRef.value?.focus()
})