props: ['item'],computed: {
coinPrice () { return this.item.currentPrice.toFixed(2)
}
}這里報this.item.currentPrice undefined,查了加載順訊,props在computed之前,為什么會報undefined?值可以出來,先報undefined后在出來
添加回答
舉報
0/150
提交
取消