diff --git a/components/settings/SyncSettings.tsx b/components/settings/SyncSettings.tsx index be56200..a8f5635 100644 --- a/components/settings/SyncSettings.tsx +++ b/components/settings/SyncSettings.tsx @@ -20,6 +20,24 @@ export function SyncSettings() { } = useSync(); if (!isInitialized) { + if (error) { + return ( +
+

+ + 云端同步 (Google Drive) +

+
+

配置缺失

+

请在 .env.local 文件中添加 Google Client ID:

+ + NEXT_PUBLIC_GOOGLE_CLIENT_ID=你的客户端ID + +
+
+ ); + } + return (