Skip to content

Commit

Permalink
docs: update communication.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qiufeihong2018 committed Apr 11, 2024
1 parent 08b8f1e commit 1f5563d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/vue/communication.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ inject:['foo'] // 获取到祖先组件传递过来的值
- `state`用来存放共享变量的地方
- `getter`,可以增加一个`getter`派生状态,\(相当于`store`中的计算属性),用来获得共享变量的值
- `mutations`用来存放修改`state`的方法。
- `actions`也是用来存放修改state的方法,不过`action`是在`mutations`的基础上进行。常用来做一些异步操作
- `actions`也是用来存放修改state的方法,不过`actions`是在`mutations`的基础上进行。常用来做一些异步操作

### 小结

Expand Down

0 comments on commit 1f5563d

Please sign in to comment.