@blueking/bk-weweb 0.0.36-beta.22 → 0.0.36-beta.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -2456,12 +2456,16 @@ var AppCache = class {
2456
2456
  app = item;
2457
2457
  break;
2458
2458
  }
2459
- const childApp = item?.sandBox?.proxyWindow?.__getAppOrInstance__()?.getApp(name);
2459
+ const childApp = item?.sandBox?.proxyWindow?.__getAppOrInstance__()?.cache.get(name);
2460
2460
  if (childApp) {
2461
2461
  app = childApp;
2462
2462
  break;
2463
2463
  }
2464
2464
  }
2465
+ const parentApp = window.rawWindow?.__getAppOrInstance__().cache.get(name);
2466
+ if (parentApp) {
2467
+ return parentApp;
2468
+ }
2465
2469
  return app;
2466
2470
  }
2467
2471
  /**