From a44f0ee052b74e71ac58811bc3eefd109f023747 Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Tue, 7 Jul 2026 11:23:30 +0800 Subject: [PATCH] style: adjust ai tab switch gap and clean up code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - reduce gap in AiTabSwitch styles from 40px to 20px - format component tags in Discovery page for better readability - update tab label check in isPanoramaGuideTab from "全景攻略" to "测试-2.0" --- src/components/AiTabSwitch/styles/index.scss | 2 +- src/pages/Discovery/index.vue | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/src/components/AiTabSwitch/styles/index.scss b/src/components/AiTabSwitch/styles/index.scss index 70248ba..a1e294c 100644 --- a/src/components/AiTabSwitch/styles/index.scss +++ b/src/components/AiTabSwitch/styles/index.scss @@ -7,7 +7,7 @@ width: 100%; height: 50px; display: flex; - gap: 40px; + gap: 20px; overflow: hidden; } diff --git a/src/pages/Discovery/index.vue b/src/pages/Discovery/index.vue index 3724a8c..420494d 100644 --- a/src/pages/Discovery/index.vue +++ b/src/pages/Discovery/index.vue @@ -6,16 +6,9 @@ - - + + @@ -58,7 +51,7 @@ const discoveryQuickQuestions = ref([]); const emit = defineEmits(["content-scroll"]); const isPanoramaGuideTab = computed(() => { - return discoveryTabs.value[activeIndex.value]?.label === "全景攻略"; + return discoveryTabs.value[activeIndex.value]?.label === "测试-2.0"; }); const handleContentScroll = (e) => {