Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-10 09:20:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a8471618cfb9fec7d1c42d4f24379c1e138a0708
a8471618
1 parent
97ea3bb8
fix
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
src/views/me/collection.vue
src/views/me/message.vue
src/views/me/collection.vue
View file @
a847161
...
...
@@ -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:0
7
* @LastEditTime: 2022-06-
10 00:46:5
7
* @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;
...
...
src/views/me/message.vue
View file @
a847161
...
...
@@ -140,6 +140,9 @@ const deleteComment = (id: string) => { // 删除评论
// 移除当前选中评论,避免刷新页面
_.remove(commentList.value, comment => comment.id === id);
Toast.success('删除成功');
if (!commentList.value.length) {
onLoad()
}
}
})
.catch(() => {
...
...
Please
register
or
login
to post a comment