diff --git a/src/components/SimpleMenu/src/components/MenuItem.vue b/src/components/SimpleMenu/src/components/MenuItem.vue index 8639280c..12a30181 100644 --- a/src/components/SimpleMenu/src/components/MenuItem.vue +++ b/src/components/SimpleMenu/src/components/MenuItem.vue @@ -63,7 +63,7 @@ function handleClickItem() { } watch( () => activeName.value, - (name: string) => { + (name: string | number) => { if (name === props.name) { const { list, uidList } = getParentList() active.value = true