1、设置default-expand-all="true"属性
<el-tree
    :data="data"
    default-expand-all/>
  • 1.
  • 2.
  • 3.

作者:꧁执笔小白꧂