From 7fcb2555a33b91bbb0bfbd98322b5b7eaa06461c Mon Sep 17 00:00:00 2001 From: Seven Date: Sun, 21 Dec 2025 02:37:01 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=AE=A4=E8=AF=81=E9=80=BB=E8=BE=91=EF=BC=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E9=87=8D=E5=AE=9A=E5=90=91=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E7=9B=B8=E5=85=B3=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=92=8C=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- auto-imports.d.ts | 4 ++-- src/App.vue | 7 +++++- src/api/index.ts | 7 ++++++ src/composables/beforeApp.ts | 15 ------------ src/composables/useAuth.ts | 30 ------------------------ src/composables/useNavigateToRedirect.ts | 12 ++++++++++ src/main.ts | 6 ++--- src/router/guard.ts | 5 ++++ src/router/index.ts | 14 +++++++++++ src/store/user.ts | 25 ++++++++++++++++---- src/views/auth/login/index.vue | 15 +++++++++--- src/views/onchain-address/index.vue | 3 ++- src/views/user-settings/email.vue | 3 ++- src/views/user-settings/index.vue | 6 +++-- src/views/user-settings/nickname.vue | 4 ++-- src/views/user-settings/username.vue | 3 ++- src/views/user/components/user-info.vue | 3 ++- src/vite-env.d.ts | 9 +++++++ 18 files changed, 104 insertions(+), 67 deletions(-) delete mode 100644 src/composables/beforeApp.ts delete mode 100644 src/composables/useAuth.ts create mode 100644 src/composables/useNavigateToRedirect.ts diff --git a/auto-imports.d.ts b/auto-imports.d.ts index 50b4ee1..e821eca 100644 --- a/auto-imports.d.ts +++ b/auto-imports.d.ts @@ -234,6 +234,7 @@ declare global { const useMouseInElement: typeof import('@vueuse/core').useMouseInElement const useMousePressed: typeof import('@vueuse/core').useMousePressed const useMutationObserver: typeof import('@vueuse/core').useMutationObserver + const useNavigateToRedirect: typeof import('./src/composables/useNavigateToRedirect').useNavigateToRedirect const useNavigatorLanguage: typeof import('@vueuse/core').useNavigatorLanguage const useNetwork: typeof import('@vueuse/core').useNetwork const useNow: typeof import('@vueuse/core').useNow @@ -372,7 +373,6 @@ declare module 'vue' { readonly acceptHMRUpdate: UnwrapRef readonly asyncComputed: UnwrapRef readonly autoResetRef: UnwrapRef - readonly beforeApp: UnwrapRef readonly clearExpiredCaches: UnwrapRef readonly computed: UnwrapRef readonly computedAsync: UnwrapRef @@ -516,7 +516,6 @@ declare module 'vue' { readonly useAsyncQueue: UnwrapRef readonly useAsyncState: UnwrapRef readonly useAttrs: UnwrapRef - readonly useAuth: UnwrapRef readonly useBase64: UnwrapRef readonly useBattery: UnwrapRef readonly useBluetooth: UnwrapRef @@ -595,6 +594,7 @@ declare module 'vue' { readonly useMouseInElement: UnwrapRef readonly useMousePressed: UnwrapRef readonly useMutationObserver: UnwrapRef + readonly useNavigateToRedirect: UnwrapRef readonly useNavigatorLanguage: UnwrapRef readonly useNetwork: UnwrapRef readonly useNow: UnwrapRef diff --git a/src/App.vue b/src/App.vue index caa926b..52bb124 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,10 +1,15 @@ @@ -33,7 +38,11 @@ async function handleSignInPhoneNumber(value: PhoneNumberVerifyClient) { - + + + + + {{ t('auth.login.signupButton') }} diff --git a/src/views/onchain-address/index.vue b/src/views/onchain-address/index.vue index a4c9cdc..27ea5ae 100644 --- a/src/views/onchain-address/index.vue +++ b/src/views/onchain-address/index.vue @@ -1,7 +1,8 @@