([])
+ const initialLoading = ref(true)
const isApplicationGroupsLoaded = ref(false)
// 总数不超过 20 条时,补齐分组接口可能只返回的最近 5 条会话。
@@ -60,14 +61,18 @@ export function createPortalConversationListStore(deps: PortalConversationListDe
}
const loadApplicationGroups = () =>
- pageApplicationConversations(1, APPLICATION_PAGE_SIZE).then((response) => {
- applicationGroups.value = (response.records ?? []).map((application) => ({
- ...application,
- expanded: application.conversations.length > 0 || application.id === currentApplicationId.value,
- }))
- isApplicationGroupsLoaded.value = true
- return completeGroupConversations()
- })
+ pageApplicationConversations(1, APPLICATION_PAGE_SIZE)
+ .then((response) => {
+ applicationGroups.value = (response.records ?? []).map((application) => ({
+ ...application,
+ expanded: application.conversations.length > 0 || application.id === currentApplicationId.value,
+ }))
+ isApplicationGroupsLoaded.value = true
+ return completeGroupConversations()
+ })
+ .finally(() => {
+ initialLoading.value = false
+ })
// 展开其他智能体时查询其最近会话;当前智能体以会话列表 Store 为准,无需查询
const loadGroupConversations = (group: PortalApplicationGroup) =>
@@ -153,6 +158,7 @@ export function createPortalConversationListStore(deps: PortalConversationListDe
return {
applicationGroups,
+ initialLoading,
isApplicationGroupsLoaded,
loadApplicationGroups,
toggleGroup,
diff --git a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue
index a805a748d3f..149688ec4c4 100644
--- a/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue
+++ b/ui/src/conversation-panel/left-sidebar/portal-conversation-list/index.vue
@@ -25,7 +25,7 @@ const portalLogo = computed(() => authStore.authProfile?.logo)
const msgs = useMessageListStore()
const canShare = computed(() => msgs.messages.value.length > 0 && !msgs.streamLoading.value && !msgs.loading.value)
const portalList = usePortalConversationListStore()
-const { applicationGroups, currentApplicationId, isApplicationListActive, toggleGroup } = portalList
+const { applicationGroups, initialLoading, currentApplicationId, isApplicationListActive, toggleGroup } = portalList
const { conversations, currentChatId, selectConversation, deleteChat, newConversation, switchShared, toggleLeftSide } = useConversationListStore()
const historyApplicationId = ref('')
@@ -135,8 +135,9 @@ const handleClearConversations = () => {
-
- 暂无历史记录
+
+
+ 暂无历史记录
{
-
+
+
-
+
-
-
-
{{ card.label }}
-
{{ toThousands(card.total) }}
-
+
+
+
+
{{ card.label }}
+
{{ toThousands(card.total) }}
+
-
-
-
-
+
+
+
+
-
-
-
-
{{ label }}
-
{{ toThousands(value) }}
-
-
-
+
+
+
+
{{ label }}
+
{{ toThousands(value) }}
+
+
+
+
diff --git a/ui/src/views/home/components/HomeStatistics.vue b/ui/src/views/home/components/HomeStatistics.vue
index f3492029e4c..24e2f730117 100644
--- a/ui/src/views/home/components/HomeStatistics.vue
+++ b/ui/src/views/home/components/HomeStatistics.vue
@@ -81,31 +81,33 @@ watch(() => [props.workspaceId, props.applicationId], loadMonitoring, { immediat
-
+
- {{ metric.title }}
-
-
-
-
-
-
{{ numberFormat(series.total) }}
-
+
+ {{ metric.title }}
+
+
+
+
+
+
{{ numberFormat(series.total) }}
+
+
-
-
-
- {{ metric.id === 'tokens' ? formatTokenNumber(metric.series[0]?.total) : numberFormat(metric.series[0]?.total) }}
-
- +{{ numberFormat(metric.series[1]?.total) }}
-
-
+
+
+ {{ metric.id === 'tokens' ? formatTokenNumber(metric.series[0]?.total) : numberFormat(metric.series[0]?.total) }}
+
+ +{{ numberFormat(metric.series[1]?.total) }}
+
+
+
@@ -113,7 +115,9 @@ watch(() => [props.workspaceId, props.applicationId], loadMonitoring, { immediat
{{ metric.title }}
+
排行榜 TOP5
-