Skip to content

Commit

Permalink
fix(transformer): 快应用循环 index 和 item 的位置错乱
Browse files Browse the repository at this point in the history
  • Loading branch information
yuche committed Jul 12, 2019
1 parent 525d278 commit 064c507
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro-transformer-wx/src/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2093,8 +2093,8 @@ export class RenderParser {
this.addRefIdentifier(callee, t.identifier(stateName))
// this.referencedIdentifiers.add(t.identifier(stateName))
if (Adapters.quickapp === Adapter.type) {
let itemName = indexId!.name
let indexName = itemId!.name
let itemName = itemId!.name
let indexName = indexId!.name
if (itemName || indexName) {
let forExpr: string
if (itemName && !indexName) {
Expand Down

0 comments on commit 064c507

Please sign in to comment.