From 727d9037d19930d5173877ebced61ff0f2cc4797 Mon Sep 17 00:00:00 2001 From: Aaron3S Date: Thu, 28 Nov 2024 18:20:54 +0800 Subject: [PATCH] feat: move face setting to profile --- src/views/profile/index.vue | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue index 1a03b1e3c..8dab56d33 100644 --- a/src/views/profile/index.vue +++ b/src/views/profile/index.vue @@ -18,6 +18,12 @@ style="margin-top: 15px" type="info" /> + @@ -76,6 +82,21 @@ export default { url: `/api/v1/users/profile/`, showPasswordDialog: false, currentEdit: '', + biometricFeaturesActions: [ + { + title: this.$t('Face'), + attrs: { + type: 'primary', + label: this.$store.state.users.profile.is_face_code_set ? this.$t('Unbind') : this.$t('Bind') + }, + callbacks: { + click: () => { + const next_url = this.$store.state.users.profile.is_face_code_set ? '/core/auth/profile/face/disable/' : '/core/auth/profile/face/enable/' + window.open(next_url, '_self') + } + } + } + ], authQuickActions: [ { title: this.$t('WeComOAuth'),