panhui 4 years ago
parent
commit
a813c1c08a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/main/nine-space/src/components/product/ProductBanner.vue

+ 6 - 2
src/main/nine-space/src/components/product/ProductBanner.vue

@@ -103,12 +103,16 @@ export default {
             if (!this.info.liked) {
                 this.$http.get(`/collection/${this.info.id}/like`).then(() => {
                     this.$emit('getProduct');
-                    this.$toast.success('收藏成功');
+                    setTimeout(() => {
+                        this.$toast.success('收藏成功');
+                    }, 300);
                 });
             } else {
                 this.$http.get(`/collection/${this.info.id}/unlike`).then(() => {
                     this.$emit('getProduct');
-                    this.$toast.success('取消收藏');
+                    setTimeout(() => {
+                        this.$toast.success('取消收藏');
+                    }, 300);
                 });
             }
         }