Skip to content

Commit 1967262

Browse files
committed
fix(mp-alipay): refInFor #930
1 parent b86f990 commit 1967262

File tree

1 file changed

+2
-2
lines changed
  • src/platforms/mp-alipay/runtime/wrapper

1 file changed

+2
-2
lines changed

src/platforms/mp-alipay/runtime/wrapper/util.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const customizeRE = /:/g
1414

1515
const customize = cached((str) => {
1616
return camelize(str.replace(customizeRE, '-'))
17-
})
17+
})
1818

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

@@ -112,7 +112,7 @@ export function handleRef (ref) {
112112
if (refName) {
113113
this.$vm.$refs[refName] = ref.$vm || ref
114114
} else if (refInForName) {
115-
this.$vm.$refs[refInForName] = [ref.$vm || ref]
115+
(this.$vm.$refs[refInForName] || (this.$vm.$refs[refInForName] = [])).push(ref.$vm || ref)
116116
}
117117
}
118118

0 commit comments

Comments
 (0)