From e32ef9b9fff42fbbbfaf2bc5c15ab3e161052e31 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 24 Feb 2026 04:19:57 -0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20snapshot.types=20=E8=A1=A5?= =?UTF-8?q?=E5=85=85=20MPC=5FPOSTGRES=20=E7=B1=BB=E5=9E=8B=E5=92=8C?= =?UTF-8?q?=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 后端新增了 MPC_POSTGRES 备份目标,前端 BackupTarget 类型和 BACKUP_TARGET_LABELS 缺少对应项导致复选框无法渲染。 Co-Authored-By: Claude Opus 4.6 --- frontend/admin-web/src/types/snapshot.types.ts | 3 ++- frontend/mining-admin-web/src/types/snapshot.types.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/admin-web/src/types/snapshot.types.ts b/frontend/admin-web/src/types/snapshot.types.ts index 3f122822..35310153 100644 --- a/frontend/admin-web/src/types/snapshot.types.ts +++ b/frontend/admin-web/src/types/snapshot.types.ts @@ -1,9 +1,10 @@ -export type BackupTarget = 'POSTGRES' | 'REDIS' | 'KAFKA' | 'ZOOKEEPER' | 'MINIO' | 'UPLOADS'; +export type BackupTarget = 'POSTGRES' | 'MPC_POSTGRES' | 'REDIS' | 'KAFKA' | 'ZOOKEEPER' | 'MINIO' | 'UPLOADS'; export type StorageType = 'MINIO' | 'LOCAL'; export type SnapshotStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED'; export const BACKUP_TARGET_LABELS: Record = { POSTGRES: 'PostgreSQL', + MPC_POSTGRES: 'MPC PostgreSQL', REDIS: 'Redis', KAFKA: 'Kafka', ZOOKEEPER: 'ZooKeeper', diff --git a/frontend/mining-admin-web/src/types/snapshot.types.ts b/frontend/mining-admin-web/src/types/snapshot.types.ts index 3f122822..35310153 100644 --- a/frontend/mining-admin-web/src/types/snapshot.types.ts +++ b/frontend/mining-admin-web/src/types/snapshot.types.ts @@ -1,9 +1,10 @@ -export type BackupTarget = 'POSTGRES' | 'REDIS' | 'KAFKA' | 'ZOOKEEPER' | 'MINIO' | 'UPLOADS'; +export type BackupTarget = 'POSTGRES' | 'MPC_POSTGRES' | 'REDIS' | 'KAFKA' | 'ZOOKEEPER' | 'MINIO' | 'UPLOADS'; export type StorageType = 'MINIO' | 'LOCAL'; export type SnapshotStatus = 'PENDING' | 'RUNNING' | 'COMPLETED' | 'FAILED'; export const BACKUP_TARGET_LABELS: Record = { POSTGRES: 'PostgreSQL', + MPC_POSTGRES: 'MPC PostgreSQL', REDIS: 'Redis', KAFKA: 'Kafka', ZOOKEEPER: 'ZooKeeper',