提交 55cb16ae 编写于 作者: fxy060608's avatar fxy060608

fix(mp): subpackage (#3923)

上级 4e5593a6
......@@ -170,7 +170,7 @@ export function $createComponent(
export function $destroyComponent(instance: ComponentPublicInstance) {
if (!$destroyComponentFn) {
$destroyComponentFn = getApp().$vm.$destroyComponent
$destroyComponentFn = getAppVm().$destroyComponent
}
return $destroyComponentFn(instance)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册