Parcourir la source

feat:请求bug

ananzhusen il y a 8 mois
Parent
commit
ecf1641a79
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      src/views/components/Graphics.vue

+ 2 - 2
src/views/components/Graphics.vue

@@ -800,10 +800,10 @@ const groupChange = async (name: string) => {
   // if (!activedPanels[name]) {
   activedPanels[name] = [];
   if(['素材','设备'].includes(name)){
-    activedPanels[name].push(subGroups.value[0].name);
+    activedPanels[name].push(subGroups.value[0]?.name);
   }else{
     for (const item of subGroups.value) {
-      activedPanels[name].push(item.name);
+      activedPanels[name].push(item?.name);
     }
   }
   // }