diff --git a/src/@core/utils/index.ts b/src/@core/utils/index.ts
index 111815c6..ddc03649 100644
--- a/src/@core/utils/index.ts
+++ b/src/@core/utils/index.ts
@@ -32,6 +32,7 @@ export const isToday = (date: Date) => {
)
}
+// 计算时间差,返回xx天xx小时xx分钟
export const calculateTimeDifference = (inputTime: string): string => {
if (!inputTime) {
@@ -57,3 +58,13 @@ export const calculateTimeDifference = (inputTime: string): string => {
return `${days}天`;
}
}
+
+// 判断一个数组subArray是不是在另一个数组mainArray中
+export const isContained = (subArray: any[], mainArray: any[]): boolean => {
+ return subArray.every(element => mainArray.includes(element));
+}
+
+// 判断两个数组是否存在交集
+export const isIntersected = (array1: any[], array2: any[]): boolean => {
+ return array1.some(element => array2.includes(element));
+}
diff --git a/src/components/cards/SiteCard.vue b/src/components/cards/SiteCard.vue
index eea63e5b..5b2166d9 100644
--- a/src/components/cards/SiteCard.vue
+++ b/src/components/cards/SiteCard.vue
@@ -188,7 +188,7 @@ onMounted(() => {
@click="siteInfoDialog = true"
>
-
+
diff --git a/src/views/discover/TorrentCardListView.vue b/src/views/discover/TorrentCardListView.vue
index 80cfb5db..dcd7524f 100644
--- a/src/views/discover/TorrentCardListView.vue
+++ b/src/views/discover/TorrentCardListView.vue
@@ -1,32 +1,33 @@
-
+
-
+
-
+
-
+
-
+
-
+
{{ progressText }}
-