VUEX中的dispatch()和commit()
commit: 同步操作存储 this.$store.commit('changeValue',name) 取值 this.$store.state.changeValue ...
commit: 同步操作存储 this.$store.commit('changeValue',name) 取值 this.$store.state.changeValue ...
报错的截图 原因:解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题 解决办法: ...