| | |
| | | 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); |