动态加载代码整改

Signed-off-by: enxue <sunxiaoxiang7@huawei.com>
This commit is contained in:
enxue 2023-12-25 20:41:36 +08:00
parent 22ece56380
commit dab6e9664c

View File

@ -52,7 +52,7 @@ export struct DynamicHome {
async loadPageOne(key: String): Promise<void> {
if (key === "pageOne") {
let PageObj = await import("../model/PageOneLoader");
let PageObj: Record<string, () => void> = await import("../model/PageOneLoader");
this.PageOneLoader = PageObj.PageOneLoader;
}
}