Skip to content

fix: 文档问题列表多选框点击范围优(#424) #436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ui/src/views/document/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ function refreshDocument(row: any) {
}
}

function rowClickHandle(row: any) {
function rowClickHandle(row: any, column: any) {
if (column && column.type === 'selection') {
return
}

router.push({ path: `/dataset/${id}/${row.id}` })
}

Expand Down
5 changes: 4 additions & 1 deletion ui/src/views/log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,10 @@ const preChatRecord = () => {
}
}

function rowClickHandle(row: any) {
function rowClickHandle(row: any, column?: any) {
if (column && column.type === 'selection') {
return
}
currentChatId.value = row.id
currentAbstract.value = row.abstract
ChatRecordRef.value.open()
Expand Down
5 changes: 4 additions & 1 deletion ui/src/views/problem/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,10 @@ const preChatRecord = () => {
}
}

function rowClickHandle(row: any) {
function rowClickHandle(row: any, column?: any) {
if (column && column.type === 'selection') {
return
}
if (row.paragraph_count) {
currentClickId.value = row.id
currentContent.value = row.content
Expand Down
Loading