Comments (6)
多层嵌套路由模式最好保持一致,否则容易导致混乱
from micro-app.
按描述渲染的逻辑是没问题的,只有C无法切换路由不太应该,大概率还是路由没匹配上
from micro-app.
应为B应用是0.x版本的 是不是默认就是native路由模式,因为用了keep-alive,所以在B的子应用中用了
// 创建之前更新对应的路由
const regx = new RegExp(${window.__MICRO_APP_BASE_ROUTE__}(\/.*)$
)
// 匹配对应的正则
const match = window.location.pathname.match(regx)
// 是否匹配上对应的路由
if (match && match.length) {
// 替换对应的路由
app.$router.replace({
path: match[1],
query: {
...getQueryObject()
}
})
}
在C中获取的路由 window.location.pathname每次都是首页的地址,从而导致又重定向到了首页
from micro-app.
0.x和1.0差一个大版,相互嵌套可能会出问题,最好保持版本一致
from micro-app.
是需要保持版本一致 路由模式一致么
from micro-app.
是需要保持版本一致 路由模式一致么
是的
from micro-app.
Related Issues (20)
- css 解析RangeError: Maximum call stack size exceeded 导致样式丢失 HOT 2
- 主应用(vue3+vite)和子应用(vue2+webpack)同时改造为umd模式时,子应用的window.mount不会自动执行
- @micro-zoe/micro-app从1.0.0-rc.3升级到1.0.0-rc.5打包后报错 HOT 2
- 子应用使用 serviceWorker 出现serviceWorker 文件不加载 没法使用 不太确定是什么问题 HOT 1
- 想让子应用的弹窗在全局显示 HOT 1
- 路径自动补全导致富文本编辑器中上传的图片保存为绝对路径 HOT 1
- 导航失败,请确保子应用渲染后再调用此方法 HOT 2
- 子应用使用docx-preview插件无法预览docx文档,单独访问正常显示 HOT 3
- 子应用使用v-if切换组件,组件样式丢失
- https://zeroing.jd.com/micro-app/demo/react17 这个demo的代码在哪里可以找到呢 HOT 1
- React umi项目 子应用跳转子应用 microApp-body节点会重新刷新,导致上个路由页面的antd的message被干掉(这是message节点挂在microApp-body节点下),跳转到下个页面后就看不见message提示了 HOT 4
- Remix SPA作为子应用接入时无法正常运行
- keep-alive app 隐藏时是否可以不进行 release effect 行为?
- 基座和子应用全是vite+vue3项目,使用iframe沙盒后,chrome浏览器仍然报错 HOT 4
- 线上部署出现问题
- 主应用跟子应用部署在同一域名和端口下报name冲突 HOT 4
- 主应用vite-vue3部署子应用也是vite-vue3,部署后没加载子应用 HOT 3
- [rawWindow] 子应用中使用的第三方库中,使用了 window.location.href = xxx 会导致错误 HOT 1
- 有没有大佬写过这种, 基座应用为vite + vue3, 多页签的应用, 多个子应用也是vite+vue3, 基座应用左侧配置, 子应用的菜单,有大佬提供demo吗, 不胜感激
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 micro-app.