Browse Source

chore(MenuItem): watch回调参数类型不一致

invalid w 1 year ago
parent
commit
025cf98f4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/SimpleMenu/src/components/MenuItem.vue

+ 1 - 1
src/components/SimpleMenu/src/components/MenuItem.vue

@@ -83,7 +83,7 @@
       }
       }
       watch(
       watch(
         () => activeName.value,
         () => activeName.value,
-        (name: string) => {
+        (name: string | number) => {
           if (name === props.name) {
           if (name === props.name) {
             const { list, uidList } = getParentList();
             const { list, uidList } = getParentList();
             active.value = true;
             active.value = true;