Moss hace 1 año
padre
commit
00cda8b9ef
Se han modificado 1 ficheros con 4 adiciones y 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;
         })
       },