Skip to content

Commit d147fe6

Browse files
committed
fix(Embedded Management): Limit the length of the assistant name
1 parent 19318dc commit d147fe6

File tree

6 files changed

+16
-3
lines changed

6 files changed

+16
-3
lines changed

frontend/src/views/chat/ChatRow.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<script setup lang="ts">
22
import { ChatInfo, type ChatMessage } from '@/api/chat.ts'
33
import logo_fold from '@/assets/LOGO-fold.svg'
4+
import { useAppearanceStoreWithOut } from '@/stores/appearance'
5+
import custom_small from '@/assets/svg/logo-custom_small.svg'
46
57
withDefaults(
68
defineProps<{
@@ -12,14 +14,16 @@ withDefaults(
1214
hideAvatar: false,
1315
}
1416
)
17+
const appearanceStore = useAppearanceStoreWithOut()
1518
</script>
1619

1720
<template>
1821
<div class="chat-row-container">
1922
<div class="chat-row" :class="{ 'right-to-left': msg.role === 'user' }">
2023
<div v-if="msg.role === 'assistant'" class="ai-avatar">
21-
<el-icon>
22-
<logo_fold v-if="!hideAvatar" />
24+
<el-icon v-if="!hideAvatar">
25+
<custom_small v-if="appearanceStore.themeColor === 'custom'"></custom_small>
26+
<logo_fold v-else />
2327
</el-icon>
2428
</div>
2529
<div :class="{ 'row-full': msg.role === 'assistant', 'width-auto': msg.role === 'user' }">

frontend/src/views/chat/answer/ChartAnswer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ defineExpose({ sendMessage, index: () => index.value, stop })
244244

245245
<template>
246246
<BaseAnswer v-if="message" :message="message" :reasoning-name="reasoningName" :loading="_loading">
247-
<ChartBlock style="margin-top: 12px" :message="message" />
247+
<ChartBlock style="margin-top: 6px" :message="message" />
248248
<slot></slot>
249249
<template #tool>
250250
<slot name="tool"></slot>

frontend/src/views/ds/AddDrawer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ defineExpose({
7171
<el-drawer
7272
v-model="datasourceConfigVisible"
7373
:close-on-click-modal="false"
74+
destroy-on-close
7475
size="calc(100% - 100px)"
7576
modal-class="datasource-drawer-fullscreen"
7677
direction="btt"

frontend/src/views/system/embedded/iframe.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,7 @@ const saveHandler = () => {
674674
$t('datasource.please_enter') + $t('common.empty') + $t('embedded.application_name')
675675
"
676676
clearable
677+
maxlength="50"
677678
autocomplete="off"
678679
/>
679680
</el-form-item>

frontend/src/views/system/model/Model.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ const submit = (item: any) => {
419419
size="calc(100% - 100px)"
420420
modal-class="model-drawer-fullscreen"
421421
direction="btt"
422+
destroy-on-close
422423
:before-close="beforeClose"
423424
:show-close="false"
424425
>

frontend/src/views/system/workspace/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,12 @@ const handleCurrentChange = (val: number) => {
373373
{{ $t('workspace.relevant_content_found') }}
374374
</div>
375375
</div>
376+
<EmptyBackground
377+
v-if="!!keyword && !tableListWithSearch.length"
378+
:description="$t('datasource.relevant_content_found')"
379+
img-type="tree"
380+
style="width: 100%"
381+
/>
376382
</div>
377383

378384
<div v-if="currentTable.name" class="info-table">

0 commit comments

Comments
 (0)