Skip to content
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

Service组件如何一次请求多个服务 #11638

Open
391505380 opened this issue Feb 19, 2025 · 2 comments
Open

Service组件如何一次请求多个服务 #11638

391505380 opened this issue Feb 19, 2025 · 2 comments

Comments

@391505380
Copy link

实现场景:

由于数据域与数据链的原因,组件寻找数据只能在自己的这一级或者父级里面找到才能渲染,但是我想在初始化的时候,一次性默认将数据请求到,然后page内的所有组件都能共享

存在的问题:

service组件一次只能请求一个API

@findlay-best-wishes
Copy link

我是用的多个service绕过的,但确实麻烦些

@391505380
Copy link
Author

我是用的多个service绕过的,但确实麻烦些
但是问题下面的组件都得包裹再service里面,你说的是service嵌套service,然后在最下层的service中搭组件么

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants