From 9706a6d7d15c0debce916ff209c73aa066c6e34a Mon Sep 17 00:00:00 2001 From: Tao Chen Date: Sat, 2 Nov 2024 04:02:38 +0800 Subject: [PATCH] ew-construct oidc --- src/store/user.js | 1 + src/utils/i18n/zh_CN.json | 3 +++ src/views/login/login.vue | 8 ++++---- src/views/my/info.vue | 9 ++++++--- src/views/oauth/index.vue | 25 ++++++++++++++++--------- src/views/user/composables/edit.js | 1 + src/views/user/edit.vue | 3 +++ src/views/user/index.vue | 1 + 8 files changed, 35 insertions(+), 16 deletions(-) diff --git a/src/store/user.js b/src/store/user.js index 5d7933c..3fe712b 100644 --- a/src/store/user.js +++ b/src/store/user.js @@ -10,6 +10,7 @@ export const useUserStore = defineStore({ state: () => ({ nickname: '', username: '', + email: '', token: '', role: '', avatar: '', diff --git a/src/utils/i18n/zh_CN.json b/src/utils/i18n/zh_CN.json index 6c159f9..d50946c 100644 --- a/src/utils/i18n/zh_CN.json +++ b/src/utils/i18n/zh_CN.json @@ -457,5 +457,8 @@ }, "UserToken": { "One": "用户Token" + }, + "Email": { + "One": "邮箱" } } diff --git a/src/views/login/login.vue b/src/views/login/login.vue index 89fc86e..ce9eb32 100644 --- a/src/views/login/login.vue +++ b/src/views/login/login.vue @@ -93,10 +93,10 @@ import webauthImage from '@/assets/webauth.png'; import defaultImage from '@/assets/oidc.png'; const providerImageMap = { - google: googleImage, - github: githubImage, - oidc: oidcImage, - webauth: webauthImage, + Google: googleImage, + GitHub: githubImage, + OIDC: oidcImage, + WebAuth: webauthImage, default: defaultImage, }; diff --git a/src/views/my/info.vue b/src/views/my/info.vue index 07ac27b..5d2df6d 100644 --- a/src/views/my/info.vue +++ b/src/views/my/info.vue @@ -5,12 +5,15 @@
{{ userStore.username }}
+ +
{{ userStore.email }}
+
{{ T('ChangePassword') }} - +