Authored by 陈峰

commit

@@ -33,6 +33,11 @@ export default { @@ -33,6 +33,11 @@ export default {
33 favorite: this.product.favorite 33 favorite: this.product.favorite
34 }; 34 };
35 }, 35 },
  36 + watch: {
  37 + 'product.favorite'(val) {
  38 + this.favorite = val;
  39 + }
  40 + },
36 computed: { 41 computed: {
37 favClass() { 42 favClass() {
38 return {'btn-is-fav': this.favorite, loading: this.posting}; 43 return {'btn-is-fav': this.favorite, loading: this.posting};