fix: translation
This commit is contained in:
1 parent
1689347494
commit
6bc93490d4
4 files changed
+279
-14
No files matched your search
@@ -52,6 +52,11 @@ const selectedKb = ref('企业知识库');
|
||||
const showKbDropdown = ref(false);
|
||||
const kbMenuRef = ref<HTMLElement | null>(null);
|
||||
const kbOptions = ['企业知识库', 'ERP知识库'];
|
||||
const getKbLabel = (kb: string) => {
|
||||
if (kb === '企业知识库') return t('chat.kb.enterprise');
|
||||
if (kb === 'ERP知识库') return t('chat.kb.erp');
|
||||
return kb;
|
||||
};
|
||||
const chatScrollContainer = ref<HTMLElement | null>(null);
|
||||
let scrollToBottomFrame: number | null = null;
|
||||
let wasThinking = false;
|
||||
@@ -2454,7 +2459,7 @@ const showChatRating = ref(false);
|
||||
class="flex items-center gap-1 rounded-lg border border-slate-200 px-3 py-1.5 text-xs font-medium text-slate-600 transition-colors hover:bg-slate-50 dark:border-slate-700 dark:text-slate-300 dark:hover:bg-slate-800"
|
||||
>
|
||||
<Database class="h-3.5 w-3.5 text-brand-500" />
|
||||
{{ selectedKb }} <ChevronDown class="h-3 w-3" />
|
||||
{{ getKbLabel(selectedKb) }} <ChevronDown class="h-3 w-3" />
|
||||
</button>
|
||||
<div
|
||||
v-if="showKbDropdown"
|
||||
@@ -2467,7 +2472,7 @@ const showChatRating = ref(false);
|
||||
class="flex w-full items-center justify-between px-3 py-2 text-xs text-slate-700 transition-colors hover:bg-slate-50 dark:text-slate-300 dark:hover:bg-slate-800"
|
||||
:class="{ 'font-bold text-brand-700 dark:text-brand-300': selectedKb === option }"
|
||||
>
|
||||
{{ option }}
|
||||
{{ getKbLabel(option) }}
|
||||
<Check v-if="selectedKb === option" class="h-3.5 w-3.5" />
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user