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'),