瀏覽代碼

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

任一存 3 年之前
父節點
當前提交
cca8d58ba4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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) {