Explorar el Código

feat:请求bug

ananzhusen hace 8 meses
padre
commit
ecf1641a79
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);
     }
   }
   // }