vue-sell
vue-sell copied to clipboard
VueResource 课程中加载seller数据对象错误
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数据