From c10af99bb6639ec4b66c0e639361307917550d20 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期五, 22 十一月 2024 11:11:05 +0800
Subject: [PATCH] 修改第五步空白的问题

---
 src/views/project/ch/home/component/waterRight/center.vue |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/src/views/project/ch/home/component/waterRight/center.vue b/src/views/project/ch/home/component/waterRight/center.vue
index f24ab45..7542aa9 100644
--- a/src/views/project/ch/home/component/waterRight/center.vue
+++ b/src/views/project/ch/home/component/waterRight/center.vue
@@ -36,20 +36,17 @@
 </template>
 
 <script setup lang="ts">
-import { reactive, ref } from 'vue';
-import { activeRoomId, activeSampleId, setRoomConfig } from '/@/stores/chatRoom';
+import { reactive } from 'vue';
+import { activeRoomId, activeSampleId, exampleSceneList, setRoomConfig } from '/@/stores/chatRoom';
 let state = reactive({
 	exampleContent: [],
 	isShowExample: false,
 	m_groupArr: [],
 });
-const exampleList = ref([]); //妯$増鍒楄〃
 const emits = defineEmits<{
 	(event: 'advanceExampleClick', data): void;
 	(event: 'updateChatInput', val): void;
 }>();
-const props = defineProps(['exampleList']);
-
 const initGroupedArr = () => {
 	const groups = [];
 	let i = 0;
@@ -64,7 +61,6 @@
 	emits('updateChatInput', item.sample_question);
 	setRoomConfig(activeRoomId.value, 'isAnswerByLLM', false);
 	activeSampleId.value = item.sample_id;
-	// topGroupId.value = item.section_a_id;
 };
 //鎹竴鎵�
 const batchChange = () => {
@@ -83,21 +79,14 @@
 const tagListClick = (tagList) => {
 	let result = [];
 	tagList.forEach((tag) => {
-		props.exampleList.forEach((sample) => {
+		exampleSceneList.value.forEach((sample) => {
 			if (tag == sample.group_id) {
 				result.push(sample);
 			}
 		});
 	});
 	state.exampleContent = result;
-
 	initGroupedArr();
-};
-//闅忔満鐢熸垚棰滆壊
-const randomHexColor = () => {
-	return `#${Math.floor(Math.random() * 16777215)
-		.toString(16)
-		.padEnd(6, '0')}`;
 };
 defineExpose({
 	tagListClick,

--
Gitblit v1.9.3