From c2bd8d29ff48cb95d31818155535befb27f99c7c Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期一, 24 十一月 2025 13:35:27 +0800
Subject: [PATCH] 复选框逻辑修改

---
 pages/index.vue |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/pages/index.vue b/pages/index.vue
index 85ff11b..98d5dba 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -345,8 +345,14 @@
 		},
 		methods: {
             onRowClick(index) {
-                this.selectedIndexs = [index]; // 鍗曢��
-                // 鎵嬪姩瑙﹀彂 selectionChange 浠ュ悓姝ュ閫夋
+                this.selectedIndexs = [index];
+                this.$nextTick(() => {
+                    const row = this.tableData[index];
+                    if (this.$refs.table && this.$refs.table.toggleRowSelection) {
+                        this.$refs.table.clearSelection && this.$refs.table.clearSelection();
+                        this.$refs.table.toggleRowSelection(row, true);
+                    }
+                });
                 this.selectionChange({ detail: { index } });
             },
 			checkForUpdate() {

--
Gitblit v1.9.3