security-setting.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <script setup lang="ts">
  2. import { computed } from 'vue';
  3. import { ProfileSecuritySetting } from '@vben/common-ui';
  4. const formSchema = computed(() => {
  5. return [
  6. {
  7. value: true,
  8. fieldName: 'accountPassword',
  9. label: '账户密码',
  10. description: '当前密码强度:强',
  11. },
  12. {
  13. value: true,
  14. fieldName: 'securityPhone',
  15. label: '密保手机',
  16. description: '已绑定手机:138****8293',
  17. },
  18. {
  19. value: true,
  20. fieldName: 'securityQuestion',
  21. label: '密保问题',
  22. description: '未设置密保问题,密保问题可有效保护账户安全',
  23. },
  24. {
  25. value: true,
  26. fieldName: 'securityEmail',
  27. label: '备用邮箱',
  28. description: '已绑定邮箱:ant***sign.com',
  29. },
  30. {
  31. value: false,
  32. fieldName: 'securityMfa',
  33. label: 'MFA 设备',
  34. description: '未绑定 MFA 设备,绑定后,可以进行二次确认',
  35. },
  36. ];
  37. });
  38. </script>
  39. <template>
  40. <ProfileSecuritySetting :form-schema="formSchema" />
  41. </template>