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'
 }),
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9a532-17c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9a532-17c6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?