hookehuyr

fix

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