Comments (3)
利用vue的keep-alive进行缓存,实现思路就是在主应用中新建一个页面用来展示子应用的某个页面,然后将这个页面添加到keep-alive的include中。这样做的缺点就是,对于每个子应用需要缓存的页面都需要在主应用新建一个页面。
from micro-app-demos.
利用vue的keep-alive进行缓存,实现思路就是在主应用中新建一个页面用来展示子应用的某个页面,然后将这个页面添加到keep-alive的include中。这样做的缺点就是,对于每个子应用需要缓存的页面都需要在主应用新建一个页面。
我试了一下,但是每次都是会重新请求,难道是因为我没用loadMicroApp,而是用registerMicroApps的原因
from micro-app-demos.
用loadMicroApp加载可以,registerMicroApps会根据url的变化进行加载。
from micro-app-demos.
Related Issues (4)
- 启动报错 HOT 12
- 哪个框架比较好
- 一次性启动wujie-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-demos.