From 19c4dc9f9fd036e27d48ebd564e7ab378bda5e14 Mon Sep 17 00:00:00 2001
From: no99 <17663930442@163.com>
Date: Thu, 3 Jul 2025 15:15:49 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=BC=BA=E5=88=B6=E9=AB=98?=
=?UTF-8?q?=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.html | 6 +++---
src/views/homePage.vue | 26 --------------------------
2 files changed, 3 insertions(+), 29 deletions(-)
diff --git a/index.html b/index.html
index 5d3e20b..c09996b 100644
--- a/index.html
+++ b/index.html
@@ -1,5 +1,5 @@
-
+
@@ -11,8 +11,8 @@
AI小财神
-
-
+
+
diff --git a/src/views/homePage.vue b/src/views/homePage.vue
index 04c3a3a..b381ce3 100644
--- a/src/views/homePage.vue
+++ b/src/views/homePage.vue
@@ -536,32 +536,6 @@ onMounted(async () => {
// 监听页面高度
throttledHeightListener();
- const isAndroid = /Android/i.test(navigator.userAgent);
- if (isAndroid) {
- window.visualViewport.addEventListener("resize", () => {
- const keyboardHeight = window.innerHeight - window.visualViewport.height;
- console.log("视口大小变化", keyboardHeight);
-
- // 如果键盘高度大于100px,认为键盘弹出
- if (keyboardHeight > 100) {
- const footer = document.querySelector(".el-footer");
- footer.style.paddingBottom = `${keyboardHeight}px`;
-
- // 滚动到输入框位置
- setTimeout(() => {
- const msgInput = document.querySelector(".msg-input");
- if (msgInput) {
- msgInput.scrollIntoView({ behavior: "smooth" });
- }
- }, 300);
- } else {
- // 键盘收起
- const footer = document.querySelector(".el-footer");
- footer.style.paddingBottom = "0px";
- }
- });
- }
-
// 添加输入框焦点处理
// handleInputFocus();