When v-for circulates the data of vuex, the type of this page prompts undefind.

The




page is normal, but there are errors reported.
generally circulate the data of vuex directly in v-for, or add the data of vuex to the data of this page in created.

Feb.28,2021

There are generally two ways to use data in

vuex:
1, bind directly to data:

clipboard.png

2, use mapGetters:

 import { mapGetters} from 'vuex'
 computed: {
    ...mapGetters({
        rank: 'Rank'
 }),
Menu