fix: error when menu key dynamic, close #6057
parent
2a30de162c
commit
7252149804
|
@ -339,7 +339,7 @@ export default defineComponent({
|
|||
};
|
||||
|
||||
const onInternalOpenChange = (key: Key, open: boolean) => {
|
||||
const childrenEventKeys = keyMapStore.value[key].childrenEventKeys;
|
||||
const childrenEventKeys = keyMapStore.value[key]?.childrenEventKeys || [];
|
||||
let newOpenKeys = mergedOpenKeys.value.filter(k => k !== key);
|
||||
|
||||
if (open) {
|
||||
|
|
Loading…
Reference in New Issue