下面是寫的一個(gè)計(jì)算屬性,但是 span里不顯示, console.log 都能打印是哪出了問(wèn)題<span>{{areaUser}}</span>
computed: { // 所屬用戶
areaUser: function () { this.areaOptions.forEach( (element, index) => { if (element.id === this.temp.areaId) {
console.log('這里可以打印')
return 11111111
}
})
}
}
添加回答
舉報(bào)
0/150
提交
取消