Sfoglia il codice sorgente

编辑器-导航-场景导航:bug fix: 新增一级分组时默认二级分组没有正确设置id

任一存 3 anni fa
parent
commit
cca8d58ba4
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      packages/code/src/views/navigation/groupSettings.vue

+ 1 - 1
packages/code/src/views/navigation/groupSettings.vue

@@ -106,7 +106,7 @@ export default {
         }
         this.info.catalogRoot.push(newGroupLevel1)
         this.info.catalogs.push({
-          newGroupLevel2Id,
+          id: newGroupLevel2Id,
           name: '默认二级分组',
         })
       } else if (this.addGroupLevel === 2) {