icestark icon indicating copy to clipboard operation
icestark copied to clipboard

主应用Vue3+vite,子应用Vue3+vite,子应用Ice2,这种场景下来keep-alive怎么实现?

Open luuwang opened this issue 2 years ago • 0 comments

registerMicroApps([ { name: 'vue3', activePath: '/vue', title: 'vue3子应用', loadScriptMode: 'import', entry: 'http://localhost:3001', container: containerVue, cached: true, } ])

这样的写法目前主应用的页面缓存可以,但是子应用的切换页面缓存不生效 测试下来感觉是子应用的卸载导致的,不太确定是不是有参数可以配置子应用可以缓存。

luuwang avatar Dec 08 '22 06:12 luuwang