From c007150566688c9cda80c7aecd784c9300dfab36 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期三, 20 十一月 2024 14:26:30 +0800
Subject: [PATCH] 提交代码

---
 src/stores/chatRoom.ts                                    |    3 ---
 src/views/project/ch/home/component/waterRight/bottom.vue |   11 ++++++-----
 2 files changed, 6 insertions(+), 8 deletions(-)

diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts
index 91edf3c..fb0fd98 100644
--- a/src/stores/chatRoom.ts
+++ b/src/stores/chatRoom.ts
@@ -121,9 +121,6 @@
 		.then((res) => {
 			let [sectionList, selectSample, userTemplateList] = res;
 			sceneGroupList.value = sectionList?.groups ?? [];
-			console.log('馃殌 ~ sectionList:', sectionList);
-			console.log('馃殌 ~ selectSample:', selectSample);
-			console.log('馃殌 ~ userTemplateList:', userTemplateList);
 			getSelectListSample(selectSample, userTemplateList);
 		})
 		.catch((err) => {});
diff --git a/src/views/project/ch/home/component/waterRight/bottom.vue b/src/views/project/ch/home/component/waterRight/bottom.vue
index 293220e..b7b1018 100644
--- a/src/views/project/ch/home/component/waterRight/bottom.vue
+++ b/src/views/project/ch/home/component/waterRight/bottom.vue
@@ -95,15 +95,17 @@
 	const iconCount = iconList.value.length;
 	return iconList.value[index % iconCount];
 };
-const getMainSectionList = () => {
+const getMainSectionList = (val) => {
 	let result = [];
+	console.log('馃殌 ~ sceneGroupList.value:', sceneGroupList.value);
 	sceneGroupList.value.forEach((sectionItem, index) => {
 		sectionItem.Icon = getIconByIndex(index);
-		if (activeGroupType.value == sectionItem.group_type) {
+		if (val == sectionItem.group_type) {
 			result.push(sectionItem);
 		}
 	});
 	state.applicationScenarios = result;
+	console.log("馃殌 ~ 涓诲満鏅鐞嗗悗鐨勬暟鎹簮:", result)
 	sectionAList.value = sceneGroupList.value;
 	result?.[0] && changeScenarios(result[0]);
 };
@@ -115,11 +117,10 @@
 	}
 	return groups;
 });
-
 watch(
 	() => activeGroupType.value,
-	() => {
-		getMainSectionList();
+	(val) => {
+		getMainSectionList(val);
 	},
 	{ immediate: true }
 );

--
Gitblit v1.9.3