提交 0c58ee9f 编写于 作者: fxy060608's avatar fxy060608

fix(h5): add a fake page instance to window component (question/146126)

上级 1bc5fcaa
......@@ -7037,7 +7037,7 @@ function setupWindow(comp, id) {
};
},
setup(instance) {
instance.root = instance;
instance.$pageInstance = instance;
}
});
}
......
......@@ -14260,7 +14260,7 @@ function setupWindow(comp, id2) {
};
},
setup(instance2) {
instance2.root = instance2;
instance2.$pageInstance = instance2;
}
});
}
......
......@@ -72,7 +72,7 @@ export function setupWindow(comp: any, id: number) {
} as Page.PageInstance['$page']
},
setup(instance) {
instance.root = instance // windows 中组件 root 指向 window
instance.$pageInstance = instance // window 的页面实例 $pageInstance 指向自己
},
})
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册