Skip to content

Commit

Permalink
fix(tree): ts类型报错 (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
liweijie0812 authored Nov 30, 2023
1 parent 7619f9c commit ab911c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/tree/tree-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TypeSettingOptions,
TypeTreeNodeModel,
TypeTreeNodeData,
TypeTreeStoreOptions,
TypeFnOperation,
} from './types';
import {
Expand Down Expand Up @@ -519,7 +520,7 @@ export class TreeNode {
* @return Promise<void>
*/
private async loadChildren(): Promise<void> {
const config = get(this, 'tree.config') || {};
const config: TypeTreeStoreOptions = get(this, 'tree.config') || {};
if (this.children === true && !this.loading) {
if (isFunction(config.load)) {
this.loading = true;
Expand Down

0 comments on commit ab911c7

Please sign in to comment.