Skip to content

Commit

Permalink
fix: view module _nodesTree set init value (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo authored Aug 6, 2024
1 parent 8c80255 commit 269e304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/models/view-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function nodeListToTreeData(list: ITangoViewNodeData[]) {
*/
export class TangoViewModule extends TangoModule implements IViewFile {
// 解析为树结构的 jsxNodes 数组
_nodesTree: ITangoViewNodeData[];
_nodesTree: ITangoViewNodeData[] = [];
/**
* 通过导入组件名查找组件来自的包
*/
Expand Down

0 comments on commit 269e304

Please sign in to comment.