diff --git a/packages/web-runtime/src/ai/conversation-repository.ts b/packages/web-runtime/src/ai/conversation-repository.ts index 33e10f2c..d28e2adb 100644 --- a/packages/web-runtime/src/ai/conversation-repository.ts +++ b/packages/web-runtime/src/ai/conversation-repository.ts @@ -123,7 +123,7 @@ export class BrowserAIConversationRepository implements ConversationRepository { createConversation(sessionId: string, title: string | null = null): Promise { const now = Date.now() const conversation: RuntimeConversation = { - id: createId('conversation'), + id: createId('conv'), sessionId, title, createdAt: now, diff --git a/src/components/AIChat/ChatExplorer.vue b/src/components/AIChat/ChatExplorer.vue index cd9180ce..b61872d9 100644 --- a/src/components/AIChat/ChatExplorer.vue +++ b/src/components/AIChat/ChatExplorer.vue @@ -51,7 +51,7 @@ const emit = defineEmits<{ }>() const initialAIChatId = typeof route.query.aiChatId === 'string' ? route.query.aiChatId : null -if (initialAIChatId) emit('restore-loading-change', true) +emit('restore-loading-change', true) // 使用 AI 对话 Composable const { @@ -449,14 +449,14 @@ watch( /> -
-
+
+