Skip to content

Commit

Permalink
fix: fix tree bug
Browse files Browse the repository at this point in the history
  • Loading branch information
solarjoker committed Nov 28, 2019
1 parent f712b5c commit 7418813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/tree/TreeNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ class TreeNode extends Component {
// 异步加载子节点
loadChildren = itemId => {
const { origin } = this.props
const _orgin = typeof orgin === 'object' ? origin : origin(itemId)
const _orgin = typeof origin === 'function' ? origin(itemId) : origin
const { method, url, headers, data, params, transformResponse } = _orgin
const { dataCache } = this.state
const that = this
Expand Down

0 comments on commit 7418813

Please sign in to comment.