From e71f1da19a1de646272a91a762e84b8693086745 Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Fri, 22 May 2026 14:32:55 +0800 Subject: [PATCH] fix(grid): remove unused keyless edit warning logic --- apps/desktop/src/components/grid/DataGrid.vue | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/apps/desktop/src/components/grid/DataGrid.vue b/apps/desktop/src/components/grid/DataGrid.vue index 8c2a5d1209..5794b93c4f 100644 --- a/apps/desktop/src/components/grid/DataGrid.vue +++ b/apps/desktop/src/components/grid/DataGrid.vue @@ -85,7 +85,6 @@ import { hiveTablePropertiesIndicateTransactional, isHiddenGridColumn, isTdengineExistingRowReadonlyColumn, - usesKeylessRowPredicate, usesSyntheticRowIdKey, } from "@/lib/tableEditing"; import { formatGridSqlLiteral } from "@/lib/dataGridSql"; @@ -1260,14 +1259,6 @@ const canEditExistingRows = computed( !!props.customSave || canEditExistingTableRows(props.databaseType, hiveTableTransactional.value, props.tableMeta?.primaryKeys ?? []), ); -const showKeylessEditWarning = computed( - () => - props.context === "table-data" && - !!props.editable && - !!props.tableMeta && - props.tableMeta.primaryKeys.length === 0 && - usesKeylessRowPredicate(props.databaseType), -); watch( () => [props.databaseType, props.connectionId, props.database, props.tableMeta?.schema, props.tableMeta?.tableName], async () => { @@ -3210,19 +3201,6 @@ defineExpose({ {{ queryEditabilityHint }} - - - - - {{ t("grid.keylessEditWarning") }} - - - - {{ t("grid.keylessEditWarningHint") }} - -