Skip to content

Commit 68897b9

Browse files
Merge branch 'main' of https://github.com/maxkb-dev/maxkb
2 parents 982be95 + 0459eed commit 68897b9

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

ui/src/components/ai-chat/component/prologue-content/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<template>
22
<!-- 开场白组件 -->
33
<div class="item-content mb-16">
4-
<div class="avatar">
4+
<div class="avatar" v-if="prologue">
55
<img v-if="application.avatar" :src="application.avatar" height="32px" width="32px" />
66
<LogoIcon v-else height="32px" width="32px" />
77
</div>
8-
<div class="content">
8+
<div class="content" v-if="prologue">
99
<el-card shadow="always" class="dialog-card" style="--el-card-padding: 10px 16px 12px">
1010
<MdRenderer :source="prologue" :send-message="sendMessage"></MdRenderer>
1111
</el-card>

ui/src/views/log/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
:row-class-name="setRowClass"
4949
@selection-change="handleSelectionChange"
5050
class="log-table"
51+
ref="multipleTableRef"
5152
>
5253
<el-table-column type="selection" width="55" />
5354
<el-table-column prop="abstract" label="摘要" show-overflow-tooltip />
@@ -274,6 +275,7 @@ import useStore from '@/stores'
274275
import type { Dict } from '@/api/type/common'
275276
import { t } from '@/locales'
276277
import type { FormInstance, FormRules } from 'element-plus'
278+
import { ElTable } from 'element-plus'
277279
278280
const { application, log, document, user } = useStore()
279281
const route = useRoute()
@@ -313,6 +315,8 @@ const daterange = ref({
313315
start_time: '',
314316
end_time: ''
315317
})
318+
319+
const multipleTableRef = ref<InstanceType<typeof ElTable>>()
316320
const multipleSelection = ref<any[]>([])
317321
318322
const ChatRecordRef = ref()
@@ -587,7 +591,7 @@ const submitForm = async (formEl: FormInstance | undefined) => {
587591
chat_ids: arr
588592
}
589593
logApi.postChatRecordLog(id, form.value.dataset_id, obj, documentLoading).then((res: any) => {
590-
multipleSelection.value = []
594+
multipleTableRef.value?.clearSelection()
591595
documentDialogVisible.value = false
592596
})
593597
}

0 commit comments

Comments
 (0)