wujingjing
2024-07-22 bc4ab46fb5c4cb4435efabfe4b316be4ace5b026
src/views/project/ch/home/component/waterRight/bottom.vue
@@ -57,15 +57,17 @@
import { computed, onMounted, reactive } from 'vue';
import { getSectionList } from '/@/api/ai/chat';
import router from '/@/router';
import { activeRoomId, activeSectionAId, setRoomConfig } from '/@/stores/chatRoom';
import { activeRoomId, activeSectionAId, setRoomConfig, sectionAList } from '/@/stores/chatRoom';
let state = reactive({
   applicationScenarios: [],
   scenariosIds: [],
});
const emits = defineEmits<{
   (event: 'tagListClick', data): void;
}>();
const changeScenarios = async (item) => {
   activeSectionAId.value = item.section_id;
   console.log('🚀 ~ activeSectionAId.value:', activeSectionAId.value);
   setRoomConfig(activeRoomId.value, 'isAnswerByLLM', false);
};
const getMainSectionList = async () => {
@@ -86,6 +88,7 @@
      sectionItem.Icon = iconList[index];
   });
   state.applicationScenarios = res.sections;
   sectionAList.value = res.sections;
   res.sections?.[0] && changeScenarios(res.sections[0]);
};
const groupedArray = computed(() => {