From 91a01784db79d2fab59d8c89477c9b1f602c376c Mon Sep 17 00:00:00 2001 From: Dream Hunter Date: Sat, 4 May 2024 00:01:55 +0800 Subject: [PATCH] fix: showPassword (#192) --- frontend/src/views/Header.vue | 10 +++++++++- frontend/src/views/user/Account.vue | 8 -------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/frontend/src/views/Header.vue b/frontend/src/views/Header.vue index 7458adb8..535a2af3 100644 --- a/frontend/src/views/Header.vue +++ b/frontend/src/views/Header.vue @@ -18,7 +18,7 @@ const { toClipboard } = useClipboard() const message = useMessage() const { - jwt, localeCache, toggleDark, isDark, settings, + jwt, localeCache, toggleDark, isDark, settings, showPassword, showAuth, adminAuth, auth, loading } = useGlobalState() const route = useRoute() @@ -269,6 +269,14 @@ onMounted(async () => { + + +

{{ t("passwordTip") }}

+
+ + {{ jwt }} + +

{{ t('accessTip') }}

diff --git a/frontend/src/views/user/Account.vue b/frontend/src/views/user/Account.vue index 64804cd9..861f574a 100644 --- a/frontend/src/views/user/Account.vue +++ b/frontend/src/views/user/Account.vue @@ -89,14 +89,6 @@ const deleteAccount = async () => { {{ t('delteAccount') }} - - -

{{ t("passwordTip") }}

-
- - {{ jwt }} - -

{{ t('logoutConfirm') }}