fix: restore reproducible frontend builds

This commit is contained in:
stefanfeng
2026-08-19 14:56:39 +08:00
parent 68ea87e1b2
commit 6bf446f889
8 changed files with 153 additions and 139 deletions
+3 -2
View File
@@ -116,12 +116,13 @@ const avatarStatus = computed(() => {
return { tone: 'active', label: '在线,随时可以和我聊聊' }
})
const sourceLabel = (source?: DisplayMessage['source']) => ({
const sourceLabels: Record<NonNullable<DisplayMessage['source']>, string> = {
qa: '标准问答对',
knowledge: '参考文件知识库',
qwen: '智能回答',
public: ''
}[source || ''] || '')
}
const sourceLabel = (source?: DisplayMessage['source']) => source ? sourceLabels[source] : ''
const scrollToBottom = async () => {
await nextTick()