Skip to content

Commit

Permalink
fix(runtime): 优化数据结构,兼容百度小程序,fix #8987
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Apr 26, 2021
1 parent be929e5 commit 60b388a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/taro-runtime/src/hydrate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ export function hydrate (node: TaroElement | TaroText): MiniData {

if (childNodes.length > 0) {
data[Shortcuts.Childnodes] = childNodes.map(hydrate)
} else {
data[Shortcuts.Childnodes] = []
}

if (node.className !== '') {
Expand Down

0 comments on commit 60b388a

Please sign in to comment.