Explorar o código

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

invalid w %!s(int64=2) %!d(string=hai) anos
pai
achega
025cf98f4b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;