From 20d8fdf8a952b828cf20021a22ec54e863f958e1 Mon Sep 17 00:00:00 2001 From: yangyin <1850366751@qq.com> Date: 星期一, 28 十月 2024 13:48:08 +0800 Subject: [PATCH] getSceneGroupList --- src/stores/chatRoom.ts | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/stores/chatRoom.ts b/src/stores/chatRoom.ts index c2b5549..31f8d3b 100644 --- a/src/stores/chatRoom.ts +++ b/src/stores/chatRoom.ts @@ -78,12 +78,16 @@ 鐭ヨ瘑搴�: '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