fix: restore reproducible frontend builds
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user