caipin 1 年之前
父節點
當前提交
8151008f5a
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      services/contract_section_tree_service.go

+ 3 - 3
services/contract_section_tree_service.go

@@ -272,9 +272,9 @@ func (s *contractService) UpdateSerial(sectionData *viewmodels.TreeSectionContra
 	}
 
 	// 1-1 深度为>=1才能新增项目节
-	if section.Depth == 0 {
-		return errors.New("请在项目节第二层开始编辑")
-	}
+	// if section.Depth == 0 {
+	// 	return errors.New("请在项目节第二层开始编辑")
+	// }
 
 	err = s.treeContractDao.UpdateSerial(section, sectionData.Serial, treeType)
 	if err != nil {