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