Moss hai 1 ano
pai
achega
00cda8b9ef
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      src/pages/goods/detail.vue

+ 4 - 1
src/pages/goods/detail.vue

@@ -250,7 +250,10 @@
           type,
           operate: status ? 'NO' : 'YES'
         }).then(res => {
-          this.getDetail();
+          this.detail.up = res.data.up;
+          this.detail.collectNum = res.data.collectNum;
+          this.detail.isLike = res.data.isLike;
+          this.detail.isCollect = res.data.isCollect;
         })
       },