From aa606b863d817dce4f2855432c1ece9d7ef06f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Fri, 23 Aug 2024 17:04:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E6=BB=9A=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E6=8C=87=E5=AE=9A=E4=BD=8D=E7=BD=AE=E7=9A=84=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/main/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/layout/components/main/index.vue b/src/layout/components/main/index.vue index 2d2dda0a..94dc598f 100644 --- a/src/layout/components/main/index.vue +++ b/src/layout/components/main/index.vue @@ -443,7 +443,10 @@ const set_show_tabs = (index: number) => { if (for_index == index) { emits('rightUpdate', item, diy_data.value, page_data.value, footer_nav.value); item.show_tabs = true; - scroll(); + // 悬浮按钮的时候不用滚动到指定位置 + if (item.key !== 'float-window') { + scroll(); + } } }); };