我正在尝试在 Vuex 中使用 mapState,如下所示:
mapState({
locations: state => state.locations,
types: state => state.models.types,
models: state => state.models.models,
vendors: state => state.models.vendors,
statuses: state => state.statuses,
})
我收到“意外令牌”编译错误,Browserify 指向第一个粗箭头。如果我尝试使用扩展运算符:
...mapState({
编译错误发生在...