We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
[vue] vuex的state、getter、mutation、action、module特性分别是什么?
The text was updated successfully, but these errors were encountered:
state, 状态初始化, 并实施观察 getter, 获取数据用于view或data中使用 mutation: 内部处理state变化 action: 处理外部交互 module: 模块化以上四个
Sorry, something went wrong.
const moduleA = { state: () => ({ ... }), mutations: { ... }, actions: { ... }, getters: { ... } } const moduleB = { state: () => ({ ... }), mutations: { ... }, actions: { ... } } const store = new Vuex.Store({ modules: { a: moduleA, b: moduleB } }) store.state.a // -> moduleA 的状态 store.state.b // -> moduleB 的状态
No branches or pull requests
[vue] vuex的state、getter、mutation、action、module特性分别是什么?
The text was updated successfully, but these errors were encountered: