链无极如果我有它从来没有通过计算财产处理在计算财产
因此,这是正常解析正确承诺一则()函数,
taxRate: computed(function() {
return this.get('store').findRecord('tax-rate', { current: true });
})
但这不是,(输出[object Object]
- 承诺 - 在htmlbars模板)
taxRateValue: computed(function() {
return this.get('store').findRecord('tax-rate', { current: true }).then((taxRate) => {
return taxRate.get('taxRateValue');
})
})
那么,什么是正确的方式来处理这种不使用观测?
我会用'PromiseObject'替代。 – locks