Skip to content

Commit dbcd8cf

Browse files
Merge pull request #436 from 1Panel-dev/pr@main@fix-bug
fix: 文档问题列表多选框点击范围优(#424)
2 parents 73edc28 + 270aca4 commit dbcd8cf

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

ui/src/views/document/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,11 @@ function refreshDocument(row: any) {
371371
}
372372
}
373373
374-
function rowClickHandle(row: any) {
374+
function rowClickHandle(row: any, column: any) {
375+
if (column && column.type === 'selection') {
376+
return
377+
}
378+
375379
router.push({ path: `/dataset/${id}/${row.id}` })
376380
}
377381

ui/src/views/log/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,10 @@ const preChatRecord = () => {
264264
}
265265
}
266266
267-
function rowClickHandle(row: any) {
267+
function rowClickHandle(row: any, column?: any) {
268+
if (column && column.type === 'selection') {
269+
return
270+
}
268271
currentChatId.value = row.id
269272
currentAbstract.value = row.abstract
270273
ChatRecordRef.value.open()

ui/src/views/problem/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,10 @@ const preChatRecord = () => {
296296
}
297297
}
298298
299-
function rowClickHandle(row: any) {
299+
function rowClickHandle(row: any, column?: any) {
300+
if (column && column.type === 'selection') {
301+
return
302+
}
300303
if (row.paragraph_count) {
301304
currentClickId.value = row.id
302305
currentContent.value = row.content

0 commit comments

Comments
 (0)