瀏覽代碼

feat: 修改

Moss 1 年之前
父節點
當前提交
00cda8b9ef
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;
         })
       },