wujingjing
2025-02-17 85a2320bd1123c9bf9181178371ca00346175c45
groupTypeList
已修改1个文件
7 ■■■■ 文件已修改
src/stores/chatRoom.ts 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/stores/chatRoom.ts
@@ -64,7 +64,7 @@
/** @description 当前聊天室 groupType */
export const activeGroupType = computed({
    get: () => {
        const result = getRoomConfig(activeRoomId.value, 'activeGroupType') ?? '业务场景';
        const result = getRoomConfig(activeRoomId.value, 'activeGroupType') ?? groupTypeList.value.at(-1);
        return result;
    },
    set: (value) => {
@@ -83,7 +83,10 @@
// 主场景 列表
export const sceneGroupList = ref([]);
// groupType 列表
export const groupTypeList = computed(() => Array.from(new Set(sceneGroupList.value.map((item) => item.group_type))));
export const groupTypeList = computed(() =>
    Array.from(new Set(sceneGroupList.value.map((item) => item.group_type)))
);
// 办公/模板 列表
export const exampleSceneList = ref([]);
export const officeList = ref([]);