Skip to content

Commit

Permalink
fix(mp-alipay): refInFor #930
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Nov 19, 2019
1 parent b86f990 commit 1967262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platforms/mp-alipay/runtime/wrapper/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const customizeRE = /:/g

const customize = cached((str) => {
return camelize(str.replace(customizeRE, '-'))
})
})

export const isComponent2 = my.canIUse('component2')

Expand Down Expand Up @@ -112,7 +112,7 @@ export function handleRef (ref) {
if (refName) {
this.$vm.$refs[refName] = ref.$vm || ref
} else if (refInForName) {
this.$vm.$refs[refInForName] = [ref.$vm || ref]
(this.$vm.$refs[refInForName] || (this.$vm.$refs[refInForName] = [])).push(ref.$vm || ref)
}
}

Expand Down

0 comments on commit 1967262

Please sign in to comment.