為什么vuex中要通過mutations修改state,而不是直接修改state
1 回答

郎朗坤
TA貢獻(xiàn)1921條經(jīng)驗 獲得超9個贊
vue 1$emit$dispatch前者冒泡者冒泡vue 2取消冒泡全部$emit 用vuex 定義全局state組件修改state 父組件訪問state值
- 1 回答
- 0 關(guān)注
- 1449 瀏覽
添加回答
舉報
0/150
提交
取消