Jelajahi Sumber

修改关注展示

yuany 3 tahun lalu
induk
melakukan
f7e1a17d46
1 mengubah file dengan 3 tambahan dan 1 penghapusan
  1. 3 1
      src/views/product/Detail.vue

+ 3 - 1
src/views/product/Detail.vue

@@ -978,7 +978,9 @@ export default {
                             this.dayjs(),
                             this.dayjs(),
                             'Millisecond'
                             'Millisecond'
                         );
                         );
-                        this.timer();
+                        if(res.hasSubscribe){
+                            this.timer();
+                        }
                     } else if (res.subscribeStatus == 'ONGOING') {
                     } else if (res.subscribeStatus == 'ONGOING') {
                         this.millisecond = this.dayjs(res.endTime, 'YYYY-MM-DD HH:mm:ss').diff(
                         this.millisecond = this.dayjs(res.endTime, 'YYYY-MM-DD HH:mm:ss').diff(
                             this.dayjs(),
                             this.dayjs(),