diff --git a/pkg_user/views/myFavorite.vue b/pkg_user/views/myFavorite.vue index ba5c552..dfe2d9f 100644 --- a/pkg_user/views/myFavorite.vue +++ b/pkg_user/views/myFavorite.vue @@ -456,6 +456,7 @@ export default { const res = await removeFavorite(ids) if (res.success) { _this.isAll = false + _this.page = 1 _this.fetchData() _this.removeAfter() } @@ -463,6 +464,11 @@ export default { } }) }, + computedIsManage(arr) { + if(this.isManage && arr.length === 0) { + this.isManage = false + } + }, removeAfter() { switch (this.tabsIndex) { case 0: @@ -490,6 +496,7 @@ export default { item.state = false _this.productList.push(item) }) + _this.computedIsManage(_this.productList) _this.page++ } }, @@ -505,6 +512,7 @@ export default { item.state = false _this.storeList.push(item) }) + _this.computedIsManage(_this.storeList) _this.page++ } }, @@ -519,6 +527,7 @@ export default { item.state = false _this.videoList.push(item) }) + _this.computedIsManage(_this.videoList) _this.page++ } }, @@ -533,6 +542,7 @@ export default { item.state = false _this.countyFamousList.push(item) }) + _this.computedIsManage(_this.countyFamousList) _this.page++ } },