只需要加一个属性就好啦
:current-node-key="defaultExpand"
defaultExpand 在data中定义
<el-tree :expand-on-click-node="false" v-if="refreshTable" :data="storeTreeList1"
node-key="storeId" :filter-node-method="filterNode" :default-expand-all="isExpandAll"
:props="defaultProps" @node-click="sthandleNodeClick" highlight-current
:current-node-key="defaultExpand">
<span class="custom-tree-node" slot-scope="{ node, data }">
<span>{{ node.label }}</span>
</span>
</el-tree>
在方法中给值
非常简单~