From 93813f7b56eaf329652876fc3a71b5040565289b Mon Sep 17 00:00:00 2001 From: zhangyahui Date: Mon, 11 May 2026 11:28:59 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20setting=E9=A1=B5=E9=9D=A2=E6=8B=86?= =?UTF-8?q?=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/EmailVerificationDialog.vue | 2 +- .../setting/components/ProfileSection.vue | 235 +++++ src/views/setting/components/Radio.vue | 2 +- .../setting/components/RegionSection.vue | 128 +++ .../setting/components/SecuritySection.vue | 242 +++++ .../setting/components/SettingsActions.vue | 73 ++ .../setting/components/SettingsSection.vue | 52 + src/views/setting/index.vue | 950 ++---------------- src/views/setting/types.ts | 46 + src/views/setting/useSettingsForm.ts | 288 ++++++ 10 files changed, 1169 insertions(+), 849 deletions(-) create mode 100644 src/views/setting/components/ProfileSection.vue create mode 100644 src/views/setting/components/RegionSection.vue create mode 100644 src/views/setting/components/SecuritySection.vue create mode 100644 src/views/setting/components/SettingsActions.vue create mode 100644 src/views/setting/components/SettingsSection.vue create mode 100644 src/views/setting/types.ts create mode 100644 src/views/setting/useSettingsForm.ts diff --git a/src/views/setting/components/EmailVerificationDialog.vue b/src/views/setting/components/EmailVerificationDialog.vue index 454086e..d70f8d2 100644 --- a/src/views/setting/components/EmailVerificationDialog.vue +++ b/src/views/setting/components/EmailVerificationDialog.vue @@ -66,7 +66,7 @@ const RESEND_COUNTDOWN_SECONDS = 60 const verificationCode = ref('') const resendCountdown = ref(RESEND_COUNTDOWN_SECONDS) const verificationCodeRef = ref<{ resetCode: (size?: number) => void } | null>(null) -let resendCountdownTimer: ReturnType | null = null +let resendCountdownTimer: number | null = null const formattedResendCountdown = computed( () => `00:${String(resendCountdown.value).padStart(2, '0')}` diff --git a/src/views/setting/components/ProfileSection.vue b/src/views/setting/components/ProfileSection.vue new file mode 100644 index 0000000..a6159a7 --- /dev/null +++ b/src/views/setting/components/ProfileSection.vue @@ -0,0 +1,235 @@ + + + + + diff --git a/src/views/setting/components/Radio.vue b/src/views/setting/components/Radio.vue index 7c05e54..2f60ea0 100644 --- a/src/views/setting/components/Radio.vue +++ b/src/views/setting/components/Radio.vue @@ -2,7 +2,7 @@