只能页面中展示的吗?我知道用this.$store.state可以获取这些state来操作
1 回答

森栏
TA贡献1810条经验 获得超5个赞
...mapState({
a: function (state) {
return state.A
},
b: function (state) {
return state.b
}
})
在其他方法中直接访问this.a this.b
即可
添加回答
举报
0/150
提交
取消