File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,12 +84,12 @@ microApp.start({
8484})
8585```
8686
87- ## escapeIframeWindowEvents : iframe 模式 逃逸沙盒的window事件
87+ ## 5、 escapeIframeWindowEvents : iframe 模式 逃逸沙盒的window事件
8888``` js
8989import microApp from ' @micro-zoe/micro-app'
9090
9191microApp .start ({
92- // 子应用的
92+ // 配置所有iframe子应用 逃逸沙盒的window事件
9393 escapeIframeWindowEvents: [' message' ]
9494})
9595```
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ function patchWindowEffect (microAppWindow: microAppWindowType): CommonEffectHoo
237237 */
238238 let escapeSandboxEvent : Array < string > = [ ]
239239 if ( Array . isArray ( microApp ?. options ?. escapeIframeWindowEvents ) ) {
240- escapeSandboxEvent = microApp ? .options ? .escapeIframeWindowEvents
240+ escapeSandboxEvent = microApp . options . escapeIframeWindowEvents
241241 }
242242 const scopeWindowEvent = SCOPE_WINDOW_EVENT_OF_IFRAME . filter ( item => ! escapeSandboxEvent . includes ( item ) )
243243 return scopeWindowEvent . includes ( type ) ? microAppWindow : rawWindow
You can’t perform that action at this time.
0 commit comments