umijs / qiankun

📦 🚀 Blazing fast, simple and complete solution for micro frontends.
https://qiankun.umijs.org
MIT License
15.86k stars 2.02k forks source link

父应用首次进入子应用, 子应用为hash路由时, 在子应用组件mounted 钩子函数中进行路由跳转报错 #2990

Open YxJaycexY opened 4 months ago

YxJaycexY commented 4 months ago

父应用为history,子应用为hash路由时,在父应用首次进入子应用时, 子应用的组件mounted 钩子函数中做$router.push 的动作,会抛错

image

但若子应用为history 路由则不会抛错 github地址:https://github.com/YxJaycexY/qiankun-test-demo.git