完善了TreeManager