Comments (1)
现在发现了是因为之前404的路由path写成了'/:pathMatch(.*)*'
,导致了所有找不到的路由都导到404上;
于是参照这个issue下的方案做了一些修改把404页面单抽出来path做成/404
,然后路由守卫那边做成大概如下尝试:
虽然能够见到子项目了,但是console种其实能看出以下问题:
也就是(似乎)依然因为microapp/sub-app-2/home
在vue主项目那里的动态路由中是不存在的路由path所以会跳入404的逻辑
继续思考……
from qiankun.
Related Issues (20)
- 用qiankun,当settings中的layout为side和mix的时候,手动刷新页面,子应用无法加载,当为top的时刷新可以正常加载
- 开启experimentalStyleIsolation后,子应用组件样式里写上scoped的话,就会导致样式丢失 HOT 1
- 开启experimentalStyleIsolation后,子应用组件样式使用import引入时,样式会丢失
- [Bug]从 url import 的代码,会逃逸沙箱吗? HOT 1
- [Feature Request] 3.0 脚本执行异常需要通知微应用立即退出
- 如何处理 js 沙箱逃逸问题 HOT 1
- qiankun在子应用页面刷新后在切换子应用的其他页面报错Uncaught Error: [qiankun]: Wrapper element for xxx is not existed! HOT 2
- 子应用有独立的菜单,应该如何嵌入到主应用 HOT 2
- 关于子服务注册完成后,子服务入口文件html缓存导致js资源加载异常
- 主应用是普通的vue项目(非umi搭建), 子应用umi搭建。 问题:加载不出子应用 HOT 12
- qiankun 框架中以微应用的方式可以加载webassembly项目吗 HOT 1
- favicon and manifest.json request 404 HOT 1
- css 属性选择符包含body字符串,生成style标签样式异常 HOT 1
- css 属性选择符包含body字符串,生成style标签样式异常 HOT 1
- 子应用之间切换,定时器无法清空 HOT 1
- qiankun+vue3应用级缓存 HOT 1
- 父应用首次进入子应用, 子应用为hash路由时, 在子应用组件mounted 钩子函数中进行路由跳转报错
- [Bug]使用loadMicroApp加载应用后,切换子应用,旧应用内存不会卸载,切换越多的应用,内存在持续增加
- 模块联邦共享的模块,在子应用中运行获取到的window是基座应用window
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiankun.