Merge branch 'main' of github.com:maxkb-dev/maxkb
This commit is contained in:
commit
8c6cd3b9a4
@ -85,8 +85,8 @@
|
|||||||
plain
|
plain
|
||||||
size="small"
|
size="small"
|
||||||
@click="openParagraph(item)"
|
@click="openParagraph(item)"
|
||||||
:disabled="item.paragraph_list?.length === 0"
|
:disabled="!item.paragraph_list || item.paragraph_list?.length === 0"
|
||||||
>引用分段:{{ item.paragraph_list?.length }}</el-button
|
>引用分段:{{ item.paragraph_list?.length || 0 }}</el-button
|
||||||
>
|
>
|
||||||
<el-tag type="info" effect="plain">
|
<el-tag type="info" effect="plain">
|
||||||
消耗 tokens: {{ item?.message_tokens + item?.answer_tokens }}
|
消耗 tokens: {{ item?.message_tokens + item?.answer_tokens }}
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-dialog title="编辑分段" v-model="dialogVisible" width="600">
|
<el-dialog title="编辑分段" v-model="dialogVisible" width="600" destroy-on-close>
|
||||||
<ParagraphForm ref="paragraphFormRef" :data="detail" :isEdit="true"/>
|
<ParagraphForm ref="paragraphFormRef" :data="detail" :isEdit="true" />
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<span class="dialog-footer">
|
<span class="dialog-footer">
|
||||||
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
|
<el-button @click.prevent="dialogVisible = false"> 取消 </el-button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user