@@ -17,7 +17,7 @@ export function getTableEvent<T>(param: TableEventCB) {
selectedRow.value = record
const value = expandedRowKeys.value;
if (value.length) {
- const key = value[1];
+ const key = value[0];
expandedRowKeys.value = key === index.toString() ? [] : [`${index}`];
} else {
expandedRowKeys.value = [`${index}`]