diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 274ee1af10a90a705be16c7868e8c37ab66a3ac1..71801f6ae7c21715966ab73fd738eda8a2afdef5 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -879,7 +879,7 @@ function initComponent (componentOptions, vueOptions) { delete componentOptions.lifetimes; delete componentOptions.pageLifetimes; - return Component(componentOptions) + return my.createComponent(componentOptions) } function initBehavior ({ @@ -907,6 +907,10 @@ function handleLink (detail) { if (detail.$parent) { detail.$parent.$children.push(detail); detail.$root = this.$vm.$root; + + if (!my.canIUse('component2')) { + handleRef.call(this, detail.$scope); + } } } } else { // vueOptions diff --git a/src/platforms/mp-alipay/runtime/wrapper/index.js b/src/platforms/mp-alipay/runtime/wrapper/index.js index ed756cd7451c106f28a0fb66f701268180a8f9fc..d73e749f8bef1849c6a65bde79a3074454d6617b 100644 --- a/src/platforms/mp-alipay/runtime/wrapper/index.js +++ b/src/platforms/mp-alipay/runtime/wrapper/index.js @@ -153,7 +153,7 @@ export function initComponent (componentOptions, vueOptions) { delete componentOptions.lifetimes delete componentOptions.pageLifetimes - return Component(componentOptions) + return my.createComponent(componentOptions) } export function initBehavior ({ @@ -181,6 +181,10 @@ export function handleLink (detail) { if (detail.$parent) { detail.$parent.$children.push(detail) detail.$root = this.$vm.$root + + if (!my.canIUse('component2')) { + handleRef.call(this, detail.$scope) + } } } } else { // vueOptions