mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-27 02:30:43 +00:00
动态加载代码整改
Signed-off-by: enxue <sunxiaoxiang7@huawei.com>
This commit is contained in:
parent
22ece56380
commit
dab6e9664c
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user