添加 :default-expanded-keys=“[‘’]”
代码:
<el-tree
ref="myTree"
:data="treeList"
:props="defaultProps"
:default-expanded-keys="['']"
highlight-current
node-key="id"
添加 :default-expanded-keys=“[‘’]”
代码:
<el-tree
ref="myTree"
:data="treeList"
:props="defaultProps"
:default-expanded-keys="['']"
highlight-current
node-key="id"