-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问如何进行微应用缓存,有点没太看懂 #2
Comments
利用vue的keep-alive进行缓存,实现思路就是在主应用中新建一个页面用来展示子应用的某个页面,然后将这个页面添加到keep-alive的include中。这样做的缺点就是,对于每个子应用需要缓存的页面都需要在主应用新建一个页面。 |
我试了一下,但是每次都是会重新请求,难道是因为我没用loadMicroApp,而是用registerMicroApps的原因 |
用loadMicroApp加载可以,registerMicroApps会根据url的变化进行加载。 micro-app-demos/packages/qiankun-demo/vue3-main/src/views/React18KeepAliveView.vue Lines 20 to 29 in b4547c1
|
The text was updated successfully, but these errors were encountered: