vue-sell icon indicating copy to clipboard operation
vue-sell copied to clipboard

VueResource 课程中加载seller数据对象错误

Open GuitarmonYz opened this issue 7 years ago • 0 comments

this.$http.get('/api/seller?id=' + this.seller.id).then((response) => { response = response.body; if (response.errno === ERR_OK) { this.seller = Object.assign({}, this.seller, response.data); } }); response.data 应改为response.seller, 或者调整mock的json数据

GuitarmonYz avatar Nov 05 '17 17:11 GuitarmonYz