最近一次vue项目打包之后,在控制台出现了一个错误如下 chunk-libs.e495f7a4.js:41 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').
最近一次vue项目打包之后,在控制台出现了一个错误如下 chunk-libs.e495f7a4.js:41 Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('file://') does not match the recipient window's origin ('null').
报错信息: Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://a.page.com') does not match the recipient window's origin ('http://b.page.com') 解决方式:在子页面使用postMessage时指定ori