-
Notifications
You must be signed in to change notification settings - Fork 243
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
host端如何使用remote端的pinia中的state里面的数据呢? #612
Comments
Title: How does the host side use the data in the state in pinia on the remote side? |
只要 Vue 是同一个 vue , pinia 就能共享,跟模块联邦没关系,是你的 vue 不是同一个,没有 share |
As long as Vue is the same vue, Pinia can share it. It has nothing to do with module federation. It's just that your vue is not the same one and there is no share. |
我这边是host,引入了remote,想让remote的页面在host里边跑的时候,pinia数据展示的是host的,但是没有效果 |
My side is the host, and remote has been introduced. When I want the remote page to run in the host, the pinia data shows the host, but it has no effect. |
我在remote暴露了整个store,想在host端使用,在host端使用remote端中actions写的方法没有问题,但是获取state中的变量值为空,请问我该怎么把remote端的store中的变量都共享呢?
这是remote端的页面:
这是host端的页面:
这是remote端的暴露组件:
这是host端的引入使用组件:
The text was updated successfully, but these errors were encountered: