From d739ce91a7d0bb28f46af771036ccc1b150856c3 Mon Sep 17 00:00:00 2001
From: yangyin <1850366751@qq.com>
Date: 星期二, 29 十月 2024 11:54:59 +0800
Subject: [PATCH] 修改高度

---
 src/stores/chatRoom.ts |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts
index c2b5549..70ab0e1 100644
--- a/src/stores/chatRoom.ts
+++ b/src/stores/chatRoom.ts
@@ -1,6 +1,6 @@
 import { computed, ref } from 'vue';
-import type { ChatRoomItem } from '../layout/component/sidebar/components/types';
 import { getSectionList } from '../api/ai/chat';
+import type { ChatRoomItem } from '../layout/component/sidebar/components/types';
 
 /**
  * Room 鍏宠仈鐨勪竴浜涢厤缃�
@@ -49,12 +49,14 @@
 export const activeChatRoom = computed(() => chatRoomList.value?.find((item) => item.id === activeRoomId.value));
 export const activeSampleId = ref(null);
 export const activeSectionAId = ref(null);
+export const topGroupId = ref(null);
+
 export const activeLLMId = ref(null);
 
 /** @description 褰撳墠鑱婂ぉ瀹� groupType */
 export const activeGroupType = computed({
 	get: () => {
-		const result = getRoomConfig(activeRoomId.value, 'activeGroupType');
+		const result = getRoomConfig(activeRoomId.value, 'activeGroupType') ?? '涓氬姟鍦烘櫙';
 		return result;
 	},
 	set: (value) => {
@@ -72,18 +74,24 @@
 export const sceneGroupList = ref([]);
 // groupType 鍒楄〃
 export const groupTypeList = computed(() => Array.from(new Set(sceneGroupList.value.map((item) => item.group_type))));
-
+// 鍔炲叕/妯℃澘 鍒楄〃
+export const exampleSceneList = ref([]);
+export const officeList = ref([]);
 export const groupTypeMapIcon = {
 	鍔炲叕鍔╂墜: 'ywicon-bangong',
 	鐭ヨ瘑搴�: 'ywicon-changyonggongjuzhishisuoyin',
 	涓氬姟鍦烘櫙: 'ywicon-yewu',
 };
-
+//鑾峰彇鍦烘櫙閫夋嫨鍒楄〃
+const getSceneGroupList = async () => {
+	const res = await getSectionList();
+	sceneGroupList.value = res?.groups ?? [];
+};
 /**
  * 鑾峰彇鍏ㄥ眬鎵�鏈夋暟鎹�
  */
 export const getAllData = async () => {
-	const res = await getSectionList();
-	sceneGroupList.value = res?.groups ?? [];
+	getSceneGroupList();
 };
+
 //#endregion

--
Gitblit v1.9.3