I can take data from this.$store.state.workermanage.staff.staff
but how can I exchange this code by using ...mapstate, thanks
persons: this.$store.state.workermanage.staff.staff
computed: {
...mapState({ persons: state => state.workermanage.staff.staff })
}
And use like:
{{ persons }}