diff --git a/src/platforms/mp-alipay/runtime/wrapper/util.js b/src/platforms/mp-alipay/runtime/wrapper/util.js index 471b0f7219706823903a90d0581f6b4c48fff204..c1f5083cb37eca37c0aa600d7c67a37a949efc52 100644 --- a/src/platforms/mp-alipay/runtime/wrapper/util.js +++ b/src/platforms/mp-alipay/runtime/wrapper/util.js @@ -14,7 +14,7 @@ const customizeRE = /:/g const customize = cached((str) => { return camelize(str.replace(customizeRE, '-')) -}) +}) export const isComponent2 = my.canIUse('component2') @@ -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) } }