Skip to content

Commit

Permalink
fix(transformer): 运行 loop ref 的参数默认值为 true
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Feb 19, 2019
1 parent 3b146c8 commit 8da65f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taro-transformer-wx/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1665,7 +1665,7 @@ export class RenderParser {
this.renderPath.node.body.body.unshift(
template(`this.__state = arguments[0] || this.state || {};`)(),
template(`this.__props = arguments[1] || this.props || {};`)(),
template(`const __runloopRef = arguments[3];`)(),
template(`const __runloopRef = arguments[2] || true;`)(),
this.usedThisProperties.size
? t.variableDeclaration(
'const',
Expand Down

0 comments on commit 8da65f9

Please sign in to comment.