瀏覽代碼

feat:图元/素材展开

ananzhusen 1 年之前
父節點
當前提交
9590e06f52
共有 1 個文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/views/components/Graphics.vue

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

@@ -717,8 +717,12 @@ const groupChange = async (name: string) => {
   }
   // if (!activedPanels[name]) {
   activedPanels[name] = [];
-  for (const item of subGroups.value) {
-    activedPanels[name].push(item.name);
+  if(['素材','图元'].includes(name)){
+    activedPanels[name].push(subGroups.value[0].name);
+  }else{
+    for (const item of subGroups.value) {
+      activedPanels[name].push(item.name);
+    }
   }
   // }