Skip to content

host端如何使用remote端的pinia中的state里面的数据呢? #612

@likang329

Description

@likang329

我在remote暴露了整个store,想在host端使用,在host端使用remote端中actions写的方法没有问题,但是获取state中的变量值为空,请问我该怎么把remote端的store中的变量都共享呢?

这是remote端的页面:
微信图片_20240714184201

这是host端的页面:
微信图片_20240714184209

这是remote端的暴露组件:
微信图片_20240714185104

这是host端的引入使用组件:
微信图片_20240714184237
微信图片_20240714184244

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions