qiankun icon indicating copy to clipboard operation
qiankun copied to clipboard

【求教】多个子应用激活时路由竞争问题

Open ynchuan opened this issue 2 years ago • 1 comments

业务中存在多个子应用同时激活时,基于路由驱动的子应用路由改造成本较高,所以想咨询下是否有可能在子应用上下文中重写histroy&location及popState等路由相关的方法,实现不可视路由的可能性。或者当前是否有更好的解决方案。

ynchuan avatar Sep 21 '22 06:09 ynchuan

https://qiankun.umijs.org/zh/cookbook#%E5%90%8C%E6%97%B6%E5%AD%98%E5%9C%A8%E5%A4%9A%E4%B8%AA%E5%BE%AE%E5%BA%94%E7%94%A8%E6%97%B6

gongshun avatar Sep 21 '22 06:09 gongshun

可以拦截路由响应

Rahim-Chan avatar Oct 03 '22 09:10 Rahim-Chan

多个子应用同时激活时,vue采用abstract路由,react采用memory路由。

https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/dist/#/coexist-micro-app

MAXLZ1 avatar Oct 14 '22 09:10 MAXLZ1

多个子应用同时激活时,vue采用abstract路由,react采用memory路由。

https://maxlz1.github.io/micro-app-demos/qiankun-demo/vue3-main/dist/#/coexist-micro-app

angular请问有没啥好的方案

wudith avatar Feb 01 '23 03:02 wudith