1.前端数据结构
return { data: [{ label: ‘一级 1‘, children: [{ label: ‘二级 1-1‘, children: [{ label: ‘三级 1-1-1‘ }] }] }, {
2.我们需要封装前端数据
在Mybatis-Plus中需要在字段上打上标签
@TableField(exist = false) private List<CourseType> children = new ArrayList<CourseType>();
3.
原文:https://www.cnblogs.com/xiaoruirui/p/13651308.html