From bc084922f7b990f2968e7433bf11457a3b0391e3 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 20 Jul 2024 09:36:46 +0800 Subject: [PATCH] style: add name field to StorageConf interface and update StorageCard component to display storage name --- src/api/types.ts | 2 ++ src/components/cards/StorageCard.vue | 48 ++++++++++++++++++++++++++-- 2 files changed, 48 insertions(+), 2 deletions(-) diff --git a/src/api/types.ts b/src/api/types.ts index a25fdb57..bd5e7415 100644 --- a/src/api/types.ts +++ b/src/api/types.ts @@ -885,6 +885,8 @@ export interface NotificationSwitchConf { // 存储配置 export interface StorageConf { + // 名称 + name: string // 类型 local/alipan/u115/rclone type: string // 配置 diff --git a/src/components/cards/StorageCard.vue b/src/components/cards/StorageCard.vue index 11645e02..f58e603e 100644 --- a/src/components/cards/StorageCard.vue +++ b/src/components/cards/StorageCard.vue @@ -1,2 +1,46 @@ - - + +