this.$store.state.xxx = xxx

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

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