Skip to content

Commit 5eb7749

Browse files
committed
2 parents 4155a6c + 5d68072 commit 5eb7749

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
###**一. 什么是Vuex?**
1+
### **一. 什么是Vuex?**
22
Vuex是一个专门为Vue.js应用程序开发的状态管理模式, 它采用集中式存储管理所有组件的公共状态, 并以相应的规则保证状态以一种可预测的方式发生变化.
33

44
![Vuex核心][1]
@@ -361,6 +361,7 @@ export default {
361361
}
362362
```
363363

364+
364365
- 添加按钮, 可以发现, Product List Two中的价格减少了2, 当然你可以自定义`payload`,以此自定义减少对应的价格.
365366
![mutations效果][6]
366367
(Product List One中的价格没有发生变化, 是因为`getters`将价格进行了缓存)

0 commit comments

Comments
 (0)