Vuex怎么知道state是通过mutation修改还是外部直接修改的?

通过$watch监听mutation的commit函数中_committing是否为true

issues : https://github.com/haizlin/fe-interview/issues/393

黄昏时拿你的肋骨酿酒,百年后醉的有血有肉。
原文地址:https://www.cnblogs.com/wanan-happy/p/14266966.html