feat: 添加存储配置管理功能

- 添加存储配置管理页面(列表、创建、编辑)
- 支持本地存储、S3、WebDAV、FTP、SFTP 等存储类型
- 添加存储配置测试连接功能
- 本地存储自动初始化且禁止删除
- 修复 Switch 组件状态显示问题
- 添加更新存储配置时的 status 字段支持
This commit is contained in:
2026-05-02 17:48:58 +08:00
parent ea8ffb6c74
commit 9b82fbef4e
35 changed files with 5425 additions and 21 deletions
+60
View File
@@ -344,6 +344,66 @@ const routes: RouteRecordRaw[] = [
component: () => import('@/pages/profile/index.vue'),
meta: { title: '个人中心 - 管理后台' },
},
{
path: 'system-settings',
name: 'AdminSystemSettings',
component: () => import('@/pages/admin/system-settings/index.vue'),
meta: { title: '系统设置 - 管理后台' },
},
{
path: 'payment-channels',
name: 'AdminPaymentChannels',
component: () => import('@/pages/admin/payment-channels/index.vue'),
meta: { title: '支付渠道 - 管理后台' },
},
{
path: 'payment-channels/create',
name: 'AdminPaymentChannelCreate',
component: () => import('@/pages/admin/payment-channels/create.vue'),
meta: { title: '添加支付渠道 - 管理后台' },
},
{
path: 'payment-channels/:id',
name: 'AdminPaymentChannelEdit',
component: () => import('@/pages/admin/payment-channels/[id].vue'),
meta: { title: '编辑支付渠道 - 管理后台' },
},
{
path: 'email-settings',
name: 'AdminEmailSettings',
component: () => import('@/pages/admin/email-settings/index.vue'),
meta: { title: '邮箱配置 - 管理后台' },
},
{
path: 'email-settings/create',
name: 'AdminEmailSettingCreate',
component: () => import('@/pages/admin/email-settings/create.vue'),
meta: { title: '添加邮箱配置 - 管理后台' },
},
{
path: 'email-settings/:id',
name: 'AdminEmailSettingEdit',
component: () => import('@/pages/admin/email-settings/[id].vue'),
meta: { title: '编辑邮箱配置 - 管理后台' },
},
{
path: 'storage-configs',
name: 'AdminStorageConfigs',
component: () => import('@/pages/admin/storage-configs/index.vue'),
meta: { title: '存储管理 - 管理后台' },
},
{
path: 'storage-configs/create',
name: 'AdminStorageConfigCreate',
component: () => import('@/pages/admin/storage-configs/create.vue'),
meta: { title: '添加存储配置 - 管理后台' },
},
{
path: 'storage-configs/:id',
name: 'AdminStorageConfigEdit',
component: () => import('@/pages/admin/storage-configs/[id].vue'),
meta: { title: '编辑存储配置 - 管理后台' },
},
],
},
{