Authored by 陈峰

commit

... ... @@ -33,6 +33,11 @@ export default {
favorite: this.product.favorite
};
},
watch: {
'product.favorite'(val) {
this.favorite = val;
}
},
computed: {
favClass() {
return {'btn-is-fav': this.favorite, loading: this.posting};
... ...