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

Vuex中的getters和state的区别? #41

Open
GGXXMM opened this issue Aug 18, 2019 · 0 comments
Open

Vuex中的getters和state的区别? #41

GGXXMM opened this issue Aug 18, 2019 · 0 comments
Labels

Comments

@GGXXMM
Copy link
Owner

GGXXMM commented Aug 18, 2019

state

state是存储的单一状态,是存储的基本数据。

getters

getters是store的计算属性,对state的加工,是派生出来的数据。

@GGXXMM GGXXMM added the vue label Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant