乾坤中,tab刷新其他子应用无法加载

出现single-spa minified message #31: See...错误时,一般是子应用未卸载就再次加载出现

解决方案:

在离开子应用时,卸载子应用代码

onBeforeUnmount(()=>{
state.microApp_PAD.onUnmounted();
state.microApp_ZID.onUnmounted();
state.microApp_FIA.onUnmounted();
        })
posted @ 2022-07-12 10:30  龙丶谈笑风声  阅读(619)  评论(0编辑  收藏  举报