摘自:https://blog.csdn.net/qq_44469200/article/details/103679882【深刻認識this.$store.dispatch() 與 this.$store.commit()的區別】
commit: 同步操作
this.$store.commit('changeValue',name)
this.$store.state.changeValue
dispatch: 異步操作
this.$store.dispatch('getlists',name)
this.$store.getters.getlists