yangyin
2024-10-28 be0b1a911b5e36faf8bcc61c452520e97f00cd16
src/views/project/ch/home/component/waterRight/center.vue
@@ -38,7 +38,7 @@
<script setup lang="ts">
import { onMounted, reactive, ref } from 'vue';
import { getSelectSample } from '/@/api/ai/chat';
import { activeRoomId, activeSampleId, activeSectionAId, setRoomConfig } from '/@/stores/chatRoom';
import { activeRoomId, activeSampleId, topGroupId, setRoomConfig } from '/@/stores/chatRoom';
let state = reactive({
   exampleContent: [],
   isShowExample: false,
@@ -67,7 +67,7 @@
const getSelectListSample = async () => {
   const res = await getSelectSample({});
   const array = [];
   res.samples.forEach((sample, index) => {
   res.samples.filter(item=>item.group_id===topGroupId.value).forEach((sample, index) => {
      sample.Icon = '/static/images/wave/ChatImg.png';
      sample.BgColor = randomHexColor();
      if (index < 4) {
@@ -81,7 +81,7 @@
   emits('updateChatInput', item.sample_question);
   setRoomConfig(activeRoomId.value, 'isAnswerByLLM', false);
   activeSampleId.value = item.sample_id;
   activeSectionAId.value = item.section_a_id;
   // topGroupId.value = item.section_a_id;
};
//换一批
const batchChange = () => {