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(() => {
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+