perf(固资管理): 对接dify平台进行查询固资
This commit is contained in:
1 parent
7300098ff9
commit
ddb704f574
3 files changed
+3
-17
No files matched your search
@@ -9,7 +9,6 @@ import {
|
||||
Check,
|
||||
ChevronDown,
|
||||
Database,
|
||||
Globe,
|
||||
Link2,
|
||||
Loader2,
|
||||
Mic,
|
||||
@@ -44,12 +43,10 @@ const props = defineProps<{
|
||||
/** 用对象包裹 Ref,避免 template 自动解包 */
|
||||
shippingPickerRefHolder: { pickerRef: Ref<HTMLInputElement | null> };
|
||||
getKbLabel: (kb: string) => string;
|
||||
browserPanelOpen: boolean;
|
||||
}>();
|
||||
|
||||
const emit = defineEmits<{
|
||||
send: [];
|
||||
'toggle-browser': [];
|
||||
'voice-click': [];
|
||||
'remove-attachment': [id: string];
|
||||
'local-files-selected': [event: Event];
|
||||
@@ -312,16 +309,6 @@ onBeforeUnmount(() => {
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
:disabled="isThinking"
|
||||
class="flex items-center gap-1 rounded-lg border border-default px-3 py-1.5 text-xs font-medium text-secondary transition-colors hover:bg-surface-soft disabled:cursor-not-allowed disabled:opacity-50"
|
||||
@click="emit('toggle-browser')"
|
||||
>
|
||||
<Globe class="h-3.5 w-3.5 text-brand-500" />
|
||||
{{ browserPanelOpen ? $t('chat.collapseBrowser') : $t('chat.openBrowser') }}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<button
|
||||
|
||||
@@ -368,8 +368,6 @@ const batchCompletionPercent = computed(() => {
|
||||
:shipping-suggested-prompt="page.shippingSuggestedPrompt"
|
||||
:shipping-picker-ref-holder="page.shippingPickerRefHolder"
|
||||
:get-kb-label="page.getKbLabel"
|
||||
:browser-panel-open="page.browserPanelOpen"
|
||||
@toggle-browser="page.toggleBrowserPanel"
|
||||
@send="page.handleSend()"
|
||||
@voice-click="page.handleVoiceFeatureClick"
|
||||
@remove-attachment="page.removeAttachment"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/**
|
||||
/**
|
||||
* features/chat/composables/useChatAgent.ts
|
||||
* 当前 Agent 元数据、知识库选项、推荐问题与用户可切换 Agent 列表。
|
||||
*/
|
||||
@@ -96,8 +96,9 @@ export function useChatAgent(options: UseChatAgentOptions) {
|
||||
const kbDropdownDisabled = computed(() => availableKbOptions.value.length <= 1);
|
||||
|
||||
watch(canSelectErpKnowledgeBase, (allowed) => {
|
||||
// 固资管理默认先走企业知识库,用户可手动切换到 ERP 知识库。
|
||||
if (allowed) {
|
||||
selectedKb.value = ERP_KB;
|
||||
selectedKb.value = DEFAULT_KB;
|
||||
return;
|
||||
}
|
||||
if (selectedKb.value === ERP_KB) {
|
||||
|
||||
Reference in new issue
Block a user