fix: batch manage dialog now loads all sessions independently from API

This commit is contained in:
Andy Yang
2026-03-02 15:22:39 +08:00
committed by lyingbug
parent c989c57812
commit 92e95b19ed
6 changed files with 50 additions and 25 deletions
-13
View File
@@ -58,7 +58,6 @@
<!-- 批量管理对话框 -->
<BatchManageDialog
v-model:visible="batchManageVisible"
:sessions="allSessions"
@deleted="handleBatchDeleted"
/>
@@ -105,18 +104,6 @@ let activeSubmenu = ref<string>('');
// 批量管理状态
const batchManageVisible = ref(false);
// 所有会话列表(用于批量管理对话框)
const allSessions = computed(() => {
const chatMenu = (menuArr.value as unknown as MenuItem[]).find((item: MenuItem) => item.path === 'creatChat');
if (!chatMenu || !chatMenu.children) return [];
return chatMenu.children.map((s: any) => ({
id: s.id,
title: s.title,
created_at: s.created_at,
updated_at: s.updated_at,
}));
});
// 是否可以访问所有租户
const canAccessAllTenants = computed(() => authStore.canAccessAllTenants);