Explorar el Código

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

任一存 hace 3 años
padre
commit
cca8d58ba4
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {