|
|
@@ -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);
|
|
|
});
|
|
|
}
|
|
|
}
|