Update executor.js

This commit is contained in:
2025-12-31 11:30:24 +08:00
committed by GitHub
parent b594c22ca7
commit ec09ed420c

View File

@@ -26,6 +26,13 @@ function insertRow(state, tableIndex, data) {
} }
} }
table.rows.push(newRow); table.rows.push(newRow);
// 同步更新 rowStatuses
if (!table.rowStatuses) {
table.rowStatuses = Array(table.rows.length - 1).fill('normal');
}
table.rowStatuses.push('normal');
return { state, changes }; return { state, changes };
} }