From 587dbea4342a4f444cd1bc72bbfedbcfcad105ef Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Sun, 9 Nov 2025 08:56:08 +0000 Subject: [PATCH] remove local db settings --- src/pages/AdminDashboard.tsx | 26 +------------------------- 1 file changed, 1 insertion(+), 25 deletions(-) diff --git a/src/pages/AdminDashboard.tsx b/src/pages/AdminDashboard.tsx index 3fcdf6e..3bb6de5 100644 --- a/src/pages/AdminDashboard.tsx +++ b/src/pages/AdminDashboard.tsx @@ -20,9 +20,7 @@ import { Settings } from "lucide-react"; import { api } from "@/shared/services/unified-api"; -import { dbMode, isLocalMode } from "@/shared/config/database"; import { DatabaseManager } from "@/components/database/DatabaseManager"; -import { DatabaseStatusDetail } from "@/components/database/DatabaseStatus"; import { SystemConfig } from "@/components/system/SystemConfig"; import { toast } from "sonner"; @@ -128,21 +126,6 @@ export default function AdminDashboard() { - {/* 数据库模式提示 */} - {!isLocalMode && ( - - - - 当前使用 {dbMode === 'supabase' ? 'Supabase 云端' : '演示'} 模式。 - 数据库管理功能仅在本地数据库模式下完全可用。 - {dbMode === 'demo' && ' 请在 .env 文件中配置 VITE_USE_LOCAL_DB=true 启用本地数据库。'} - - - )} - - {/* 数据库状态卡片 */} - - {/* 统计概览 */}
@@ -468,14 +451,7 @@ export default function AdminDashboard() { 配置数据库行为和性能选项 - - - - 当前数据库模式: {dbMode === 'local' ? '本地 IndexedDB' : dbMode === 'supabase' ? 'Supabase 云端' : '演示模式'} - - - -
+

自动备份