From 9ef679e9f00e8b64be33cb00c4929fec7746d630 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期三, 20 十一月 2024 17:20:51 +0800 Subject: [PATCH] 修改场景列表 --- src/stores/chatRoom.ts | 1 + src/views/project/ch/home/component/waterRight/bottom.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts index fb0fd98..109eb2e 100644 --- a/src/stores/chatRoom.ts +++ b/src/stores/chatRoom.ts @@ -121,6 +121,7 @@ .then((res) => { let [sectionList, selectSample, userTemplateList] = res; sceneGroupList.value = sectionList?.groups ?? []; + console.log('馃殌 ~ 鍒濆鍖栫殑鍊�:', sceneGroupList.value); 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 67199d6..3993d03 100644 --- a/src/views/project/ch/home/component/waterRight/bottom.vue +++ b/src/views/project/ch/home/component/waterRight/bottom.vue @@ -95,10 +95,10 @@ const iconCount = iconList.value.length; return iconList.value[index % iconCount]; }; -const getMainSectionList = () => { +const getMainSectionList = async () => { let result = []; - console.log('馃殌 ~ sceneGroupList.value:', sceneGroupList.value); - sceneGroupList.value.forEach((sectionItem, index) => { + console.log('馃殌 ~ 寮�濮嬫瀯寤哄満鏅垪琛�:', sceneGroupList.value); + await sceneGroupList.value.forEach((sectionItem, index) => { sectionItem.Icon = getIconByIndex(index); if (activeGroupType.value == sectionItem.group_type) { result.push(sectionItem); -- Gitblit v1.9.3