From 8a6a06ba0184969459a244aaac8df06b1758b2bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=9D=B0?= Date: Fri, 26 Sep 2025 11:38:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E7=9A=84=E4=B8=8B?= =?UTF-8?q?=E6=96=B9=E6=A8=A1=E5=9E=8B=E9=80=89=E6=8B=A9=E4=BD=BF=E7=94=A8?= =?UTF-8?q?el-select=E7=BB=84=E4=BB=B6=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homePage.vue | 91 ++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 66 insertions(+), 25 deletions(-) diff --git a/src/views/homePage.vue b/src/views/homePage.vue index 2fdac7c..a260236 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -95,6 +95,24 @@ const activeIndex = ref( parseInt(sessionStorage.getItem("activeIndexAI") || "0") ); +// 手机端选择器的值,与activeTab保持同步 +const activeTabMobile = ref(activeTab.value); + +// 监听activeTab变化,同步到activeTabMobile +watch(activeTab, (newVal) => { + activeTabMobile.value = newVal; +}); + +// 手机端选择器变化处理 +const handleMobileTabChange = (value) => { + const tabIndexMap = { + "AIchat": 0, + "AiEmotion": 1, + "deepNine": 2 + }; + setActiveTab(value, tabIndexMap[value]); +}; + const tabs = computed(() => [ { name: "AIchat", @@ -1480,31 +1498,43 @@ onUnmounted(() => { - - 夺宝奇兵大模型 - - AI情绪大模型 - - 深度九大模型 + + + + +