From 270aca46b18be68e99be4e0f7a3497ef6fec6ff1 Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Mon, 13 May 2024 16:41:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=96=87=E6=A1=A3=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E5=A4=9A=E9=80=89=E6=A1=86=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E4=BC=98(#424)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/views/document/index.vue | 6 +++++- ui/src/views/log/index.vue | 5 ++++- ui/src/views/problem/index.vue | 5 ++++- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ui/src/views/document/index.vue b/ui/src/views/document/index.vue index 402d8bdf5..21e257599 100644 --- a/ui/src/views/document/index.vue +++ b/ui/src/views/document/index.vue @@ -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}` }) } diff --git a/ui/src/views/log/index.vue b/ui/src/views/log/index.vue index ea4b44586..63c2c9353 100644 --- a/ui/src/views/log/index.vue +++ b/ui/src/views/log/index.vue @@ -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() diff --git a/ui/src/views/problem/index.vue b/ui/src/views/problem/index.vue index a7a7ea348..d3223bc99 100644 --- a/ui/src/views/problem/index.vue +++ b/ui/src/views/problem/index.vue @@ -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