|
|
@@ -19,9 +19,10 @@ export default {
|
|
|
setTimeout(() => {
|
|
|
this.animate = false;
|
|
|
}, 1000);
|
|
|
- this.$http.post(this.isCollection ? '/cart/remove' : '/cart/add', data).then(res => {
|
|
|
+ return this.$http.post(this.isCollection ? '/cart/remove' : '/cart/add', data).then(res => {
|
|
|
this.toast(this.isCollection ? '取消成功' : '关注成功', 'success');
|
|
|
this.checkCollect();
|
|
|
+ return Promise.resolve();
|
|
|
});
|
|
|
},
|
|
|
checkCollect() {
|