Skip to content

[vue] 你有使用过vuex的module吗?主要是在什么场景下使用? #538

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] 你有使用过vuex的module吗?主要是在什么场景下使用?

Activity

impeiran

impeiran commented on Jul 22, 2019

@impeiran

把状态全部集中在状态树上,非常难以维护。
按模块分成多个module,状态树延伸多个分支,模块的状态内聚,主枝干放全局共享状态

WenJieLi1998

WenJieLi1998 commented on Apr 18, 2020

@WenJieLi1998

当应用非常复杂的时候,所有状态都集中在一起,store就会变得非常臃肿,难以维护

crush2020

crush2020 commented on Jan 29, 2021

@crush2020

当有多个不同模块的数据需要共享,就需要使用module分成成多个小模块使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@impeiran@WenJieLi1998@crush2020

        Issue actions

          [vue] 你有使用过vuex的module吗?主要是在什么场景下使用? · Issue #538 · haizlin/fe-interview