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()
+7 -2
View File
@@ -78,9 +78,14 @@ const typeOptions = [
{ value: 'team', label: '团队' },
{ value: 'company', label: '企业' },
{ value: 'community', label: '社群' }
]
] as const
const form = ref({ emoji: '🏢', name: '', desc: '', type: 'team' })
const form = ref({
emoji: '🏢',
name: '',
desc: '',
type: 'team' as 'team' | 'company' | 'community'
})
const canSubmit = computed(() => form.value.name.trim().length > 0)