fix: error when menu key dynamic, close #6057

pull/6063/head
tangjinzhou 2022-10-28 09:06:22 +08:00
parent 2a30de162c
commit 7252149804
1 changed files with 1 additions and 1 deletions

View File

@ -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) {