v-for="(item,index) in contactTrue" :key=‘index’
computed: {
// getResUrl: (filename) => {
// return config.resUrl + ‘/resources/mini-web/’+filename;
// }
contactTrue: function() {
return this.contactList.filter(function(item) {
return item.flag
})
}
},
v-if v-for不能再一个标签上写 用计算属性解决这个问题
最新推荐文章于 2024-01-31 19:12:46 发布