yangyin
2024-11-20 190529c5038e81b2f5539d3ee9738274e7a63637
提交代码
已修改2个文件
5 ■■■■■ 文件已修改
src/views/project/ch/home/Home.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/ch/home/component/waterRight/bottom.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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();
        });
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) {