import { mapState } from 'vuex'
...mapState({
user: (state) =>{
return _.filter(state, data => {
return _.includes(this.allUserIds, data.id)
} )
}
})
Run Code Online (Sandbox Code Playgroud)
在这种情况下,我不会在地图状态下调用 this.allUserIds