From 190529c5038e81b2f5539d3ee9738274e7a63637 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期三, 20 十一月 2024 16:33:43 +0800 Subject: [PATCH] 提交代码 --- src/views/project/ch/home/Home.vue | 2 +- src/views/project/ch/home/component/waterRight/bottom.vue | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/project/ch/home/Home.vue b/src/views/project/ch/home/Home.vue index c5f78c2..4df8ad9 100644 --- a/src/views/project/ch/home/Home.vue +++ b/src/views/project/ch/home/Home.vue @@ -96,7 +96,6 @@ }; onMounted(() => { isFinishPromise = new Promise(async (resolve) => { - bottomRef.value.getMainSectionList(); resolve(true); }); emitter.on('isShowHomePage', showGuide); @@ -108,6 +107,7 @@ watch( () => activeGroupType.value, (val) => { + console.log('馃殌 ~ val:', val); nextTick(() => { bottomRef.value.getMainSectionList(); }); diff --git a/src/views/project/ch/home/component/waterRight/bottom.vue b/src/views/project/ch/home/component/waterRight/bottom.vue index c2e450c..67199d6 100644 --- a/src/views/project/ch/home/component/waterRight/bottom.vue +++ b/src/views/project/ch/home/component/waterRight/bottom.vue @@ -95,8 +95,9 @@ const iconCount = iconList.value.length; return iconList.value[index % iconCount]; }; -const getMainSectionList = (val) => { +const getMainSectionList = () => { let result = []; + console.log('馃殌 ~ sceneGroupList.value:', sceneGroupList.value); sceneGroupList.value.forEach((sectionItem, index) => { sectionItem.Icon = getIconByIndex(index); if (activeGroupType.value == sectionItem.group_type) { -- Gitblit v1.9.3