wip fix
This commit is contained in:
parent
97c01221d7
commit
9d1b1ca5b3
File diff suppressed because one or more lines are too long
|
|
@ -30,7 +30,7 @@ export const treeCacheBuild = async (p: PG, page_id: string) => {
|
|||
{
|
||||
async load(comp_ids) {
|
||||
if (!p.sync) return;
|
||||
|
||||
|
||||
const ids = comp_ids.filter((id) => !p.comp.loaded[id]);
|
||||
const comps = await p.sync.comp.load(ids, true);
|
||||
let result = Object.entries(comps);
|
||||
|
|
@ -89,6 +89,7 @@ export const treeRebuild = async (p: PG, arg?: { note?: string }) => {
|
|||
p.site.layout.id === p.page.cur.id &&
|
||||
arg?.note === "load-layout page-init";
|
||||
|
||||
console.log("component loading", p.comp.list, p.comp.loaded);
|
||||
for (const [k, v] of Object.entries(p.comp.list)) {
|
||||
if (!p.comp.loaded[k]) {
|
||||
const mcomp = v.doc.getMap("map").get("root");
|
||||
|
|
|
|||
Loading…
Reference in New Issue