yangyin
2024-10-29 aefc8f607405a5e4ce67ac62810b68fac9d93f89
src/views/project/ch/home/component/waterRight/bottom.vue
@@ -4,14 +4,6 @@
         <div class="flex item-center">
            <span>应用场景</span>
         </div>
         <!-- <div class="cursor-pointer">
            <el-button link class="changeBatch" @click="lookMore"
               >查看更多
               <el-icon>
                  <ArrowRight />
               </el-icon>
            </el-button>
         </div> -->
      </div>
      <div class="main" v-show="state.applicationScenarios && state.applicationScenarios.length <= 3">
@@ -59,7 +51,7 @@
import { computed, reactive, ref, watch } from 'vue';
import { getSectionList } from '/@/api/ai/chat';
import router from '/@/router';
import { activeGroupType, sectionAList, topGroupId } from '/@/stores/chatRoom';
import { activeGroupType, sceneGroupList, sectionAList, topGroupId } from '/@/stores/chatRoom';
let state = reactive({
   applicationScenarios: [],
   scenariosIds: [],
@@ -108,14 +100,14 @@
const getMainSectionList = async () => {
   const res = await getSectionList();
   let result = [];
   res.groups.forEach((sectionItem, index) => {
   sceneGroupList.value.forEach((sectionItem, index) => {
      sectionItem.Icon = getIconByIndex(index);
      if (activeGroupType.value == sectionItem.group_type) {
         result.push(sectionItem);
      }
   });
   state.applicationScenarios = result;
   sectionAList.value = res.groups;
   sectionAList.value = sceneGroupList.value;
   result?.[0] && changeScenarios(result[0]);
};
const groupedArray = computed(() => {