yangyin
2024-11-20 190529c5038e81b2f5539d3ee9738274e7a63637
src/views/project/ch/home/component/waterRight/bottom.vue
@@ -48,7 +48,7 @@
</template>
<script setup lang="ts">
import { computed, reactive, ref, watch } from 'vue';
import { computed, reactive, ref } from 'vue';
import { activeGroupType, sceneGroupList, topGroupId } from '/@/stores/chatRoom';
let state = reactive({
   applicationScenarios: [],
@@ -95,12 +95,12 @@
   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 (val == sectionItem.group_type) {
      if (activeGroupType.value == sectionItem.group_type) {
         result.push(sectionItem);
      }
   });
@@ -115,13 +115,9 @@
   }
   return groups;
});
watch(
   () => activeGroupType.value,
   (val) => {
      getMainSectionList(val);
   },
   { immediate: true }
);
defineExpose({
   getMainSectionList,
});
</script>
<style scoped lang="scss">
.pc-scenes {