-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[vue] vuex的action和mutation的特性是什么?有什么区别? #390
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
Labels
vue
vue
Comments
action: 负责与外界交互, 比如请求数据(好像一般都是) 一个对外, 一个对内 |
action: 通过执行 commit()来触发mutation的调用, 间接更新state , |
Action
Mutation
|
Action Mutation |
mutations用于变更state,只能有同步代码。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
[vue] vuex的action和mutation的特性是什么?有什么区别?
The text was updated successfully, but these errors were encountered: