快乐的昕的电脑
2025-11-24 c2bd8d29ff48cb95d31818155535befb27f99c7c
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() {