Skip to content

Commit

Permalink
fix: 1051957
Browse files Browse the repository at this point in the history
--bug=1051957 --user=王孝刚 【知识库】在预览时修改添加标题,勾选导入时添加分段标题为关联问题,问题未和分段关联 https://www.tapd.cn/57709429/s/1650244
  • Loading branch information
wxg0103 committed Jan 23, 2025
1 parent 28f0622 commit 5b92d7b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions ui/src/views/dataset/component/SetRules.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@
</el-checkbox>
</div>
<div class="text-right mt-8">
<el-button @click="splitDocument"> {{ $t('views.document.buttons.preview') }}</el-button>
<el-button @click="splitDocument">
{{ $t('views.document.buttons.preview') }}</el-button
>
</div>
</div>
</el-col>
Expand Down Expand Up @@ -147,19 +149,19 @@ const form = reactive<{
function changeHandle(val: boolean) {
if (val && firstChecked.value) {
const list = paragraphList.value
list.map((item: any) => {
item.content.map((v: any) => {
v['problem_list'] = v.title.trim()
paragraphList.value = paragraphList.value.map((item: any) => ({
...item,
content: item.content.map((v: any) => ({
...v,
problem_list: v.title.trim()
? [
{
content: v.title.trim()
}
]
: []
})
})
paragraphList.value = list
}))
}))
firstChecked.value = false
}
}
Expand Down

0 comments on commit 5b92d7b

Please sign in to comment.