diff --git a/src/pages/Settings/Settings.tsx b/src/pages/Settings/Settings.tsx index cc8483e..c9a8bfa 100644 --- a/src/pages/Settings/Settings.tsx +++ b/src/pages/Settings/Settings.tsx @@ -455,6 +455,40 @@ function Settings() { /> + +
+
+ +

选择接收相关通知的方式

+
+ handleUserSettingChange('notificationChannel', value)} + options={[ + { value: 'sms', label: '仅短信' }, + { value: 'email', label: '仅邮件' }, + { value: 'both', label: '短信和邮件' }, + { value: 'none', label: '不通知' }, + ]} + /> +
+ +
+
+ +

用于接收邮件通知

+
+
+ handleUserSettingChange('email', e.target.value)} + /> +
+
diff --git a/src/types/index.ts b/src/types/index.ts index 04ff6bb..a7627f7 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -78,6 +78,8 @@ export interface UserSettings { defaultExpenseAccount?: Account | null; defaultIncomeAccount?: Account | null; phone?: string; + email?: string; + notificationChannel?: 'sms' | 'email' | 'both' | 'none'; } // Tag Interface