diff --git a/src/api/types.ts b/src/api/types.ts index c8b0f47e..4493c0e1 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -513,8 +513,11 @@ export interface DownloadingInfo { // 媒体信息 media: { [key: string]: any } - // 下载用户 + // 下载用户ID userid?: string + + // 下载用户名称 + username?: string } // 缺失剧集信息 diff --git a/src/views/reorganize/DownloadingListView.vue b/src/views/reorganize/DownloadingListView.vue index 15c36828..3de4c16b 100644 --- a/src/views/reorganize/DownloadingListView.vue +++ b/src/views/reorganize/DownloadingListView.vue @@ -44,7 +44,7 @@ const filteredDataList = computed(() => { if (superUser) return dataList.value else - return dataList.value.filter(data => data.userid === userName) + return dataList.value.filter(data => data.userid === userName || data.username === userName) }) // 加载时获取数据 diff --git a/src/views/subscribe/SubscribeListView.vue b/src/views/subscribe/SubscribeListView.vue index 7697372c..094760fe 100644 --- a/src/views/subscribe/SubscribeListView.vue +++ b/src/views/subscribe/SubscribeListView.vue @@ -49,7 +49,7 @@ const filteredDataList = computed(() => { if (superUser) return dataList.value.filter(data => data.type === props.type) else - return dataList.value.filter(data => data.type === props.type && data.username === userName) + return dataList.value.filter(data => data.type === props.type && (data.username === userName)) })