this.$store.state.xxx = xxx

this.$store.state.xxx在vue中使用时不一定正确,需要使用commit来改变state状态。

posted @ 2019-12-11 13:32  沐雨辰沨  阅读(165)  评论(0编辑  收藏  举报