Skip to content

Commit 9553cfb

Browse files
authored
fix: indexof openkeys error (#3334)
1 parent 520d6a5 commit 9553cfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/vc-menu/Menu.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const Menu = {
4040
watch(
4141
() => props.openKeys,
4242
() => {
43-
openKeys.value = props.openKeys;
43+
openKeys.value = props.openKeys || [];
4444
},
4545
);
4646
const activeKey = reactive({

0 commit comments

Comments
 (0)