Commit 2b3fa50c authored by Bill's avatar Bill

fix: 修改一级分类level bug

parent a4e37ded
......@@ -99,7 +99,7 @@ const ClassProperty: React.FC<{}> = () => {
const is3Level = useMemo(() => {
if (!nodeRecord || nodeRecord.parentId === 0) {
return 0;
return 1;
}
// 通脱nodeRecord 的parentId 和 _key 判断创建节点还是子节点
const { parentId, _key } = nodeRecord;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment