看源码时看到如下的代码 export default { //通过mapActions将actions映射到methods里 methods: { ...mapActions([ 'updateStatus', 'reset' ]) }, created: function() { this.updateStatus(STATUS.READY); this.reset(); }, components: {Dashboard, Chessboard, Status} } ...mapAction…