From 667413dd127fb1bd28f3370856963c8a9a7deb8d Mon Sep 17 00:00:00 2001 From: R2m1liA <15258427350@163.com> Date: Wed, 29 Oct 2025 17:33:20 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将download页的文件卡片单独提取为FileCard --- app/components/pages/download/FileCard.vue | 83 ++++++++++++++++++++++ app/pages/download/[id].vue | 72 +------------------ 2 files changed, 86 insertions(+), 69 deletions(-) create mode 100644 app/components/pages/download/FileCard.vue diff --git a/app/components/pages/download/FileCard.vue b/app/components/pages/download/FileCard.vue new file mode 100644 index 0000000..6ed83e5 --- /dev/null +++ b/app/components/pages/download/FileCard.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/app/pages/download/[id].vue b/app/pages/download/[id].vue index fed2219..dfff6a3 100644 --- a/app/pages/download/[id].vue +++ b/app/pages/download/[id].vue @@ -5,40 +5,7 @@
- - -
-
-
类型:
-
{{ file.type }}
-
-
-
大小:
-
{{ formatFileSize(file.filesize) }}
-
-
-
上传时间:
-
- {{ new Date(file.uploaded_on).toLocaleDateString() }} -
-
-
- -
+
@@ -48,7 +15,6 @@