Explorar o código

feat: 将父窗口对象传递给子应用

yusheng hai 8 meses
pai
achega
f4e8300b5a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/micro-app.js

+ 1 - 1
src/micro-app.js

@@ -70,7 +70,7 @@ const apps = microApps.map((item) => {
     container: '#micro-container', // 子应用挂载的div
     props: {
       routerBase: item.activeRule, // 下发基础路由
-      // actions
+      parentWindow: window, 
       fileMain, //文档上传组件 下发给子应用
       store
     }