鍍金池/ 問答/HTML/ vue從vuex里渲染數(shù)據(jù),刷新會提示undefined

vue從vuex里渲染數(shù)據(jù),刷新會提示undefined

v-for="(item, index) in dictionary.data.online_home_module" :key="index"

...mapGetters({
    dictionary: "dictionary"
})

數(shù)據(jù)是可用的,這里用v-if判斷undefined也會有警告提示,但是渲染正常
圖片描述

這里怎么防止警告?

回答
編輯回答
終相守

類似問題

移步

2018年4月15日 05:08