hookehuyr

fix

...@@ -2,16 +2,16 @@ ...@@ -2,16 +2,16 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-04-28 11:38:10 3 * @Date: 2022-04-28 11:38:10
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-09 16:13:07 5 + * @LastEditTime: 2022-06-10 00:46:57
6 * @FilePath: /tswj/src/views/me/collection.vue 6 * @FilePath: /tswj/src/views/me/collection.vue
7 - * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE 7 + * @Description:
8 --> 8 -->
9 <template> 9 <template>
10 <div class="book-video-list"> 10 <div class="book-video-list">
11 - <template v-for="item in prodList" :key="item" style="height: 3rem;"> 11 + <template v-for="item in prodList" :key="item">
12 - <video-card :item="item"></video-card> 12 + <video-card :item="item" />
13 </template> 13 </template>
14 - <div style="height: 2rem;"></div> 14 + <div style="height: 2rem;" />
15 </div> 15 </div>
16 <van-empty v-if="emptyStatus" 16 <van-empty v-if="emptyStatus"
17 class="custom-image" 17 class="custom-image"
...@@ -43,7 +43,7 @@ const prodList = ref([]) ...@@ -43,7 +43,7 @@ const prodList = ref([])
43 const emptyStatus = ref(false); 43 const emptyStatus = ref(false);
44 44
45 onMounted(async () => { 45 onMounted(async () => {
46 - // 获取点赞列表 46 + // 获取收藏列表
47 const { data } = await myFavorAPI(); 47 const { data } = await myFavorAPI();
48 if (!data.prod.length) { 48 if (!data.prod.length) {
49 emptyStatus.value = true; 49 emptyStatus.value = true;
......
...@@ -140,6 +140,9 @@ const deleteComment = (id: string) => { // 删除评论 ...@@ -140,6 +140,9 @@ const deleteComment = (id: string) => { // 删除评论
140 // 移除当前选中评论,避免刷新页面 140 // 移除当前选中评论,避免刷新页面
141 _.remove(commentList.value, comment => comment.id === id); 141 _.remove(commentList.value, comment => comment.id === id);
142 Toast.success('删除成功'); 142 Toast.success('删除成功');
143 + if (!commentList.value.length) {
144 + onLoad()
145 + }
143 } 146 }
144 }) 147 })
145 .catch(() => { 148 .catch(() => {
......