安全码显示六十秒后自动隐藏
Security Checks / security (push) Waiting to run

This commit is contained in:
xuans committed 2026-10-06 00:50:19 +08:00
1 parent 435595f061
commit fe3e330577
5 files changed
+17 -2

No files matched your search

@@ -12,6 +12,7 @@ import {
import { useGlobalStatusStore } from '@/stores/useGlobalStatusStore'
import { normalizeCreationOptions, serializeCredential, webAuthnSupported } from '@/utils/webauthn'
import { downloadRecoveryCodes } from '@/utils/recoveryCodeDownload'
import { RECOVERY_CODE_DISPLAY_MS } from '@/utils/recoveryCodeDisplay'
export function usePage() {
const globalStatus = useGlobalStatusStore()
@@ -270,7 +271,7 @@ export function usePage() {
const scheduleRecoveryCodeHide = () => {
clearTimeout(recoveryCodeHideTimer)
recoveryCodeHideTimer = setTimeout(clearRecoveryCodes, 60000)
recoveryCodeHideTimer = setTimeout(clearRecoveryCodes, RECOVERY_CODE_DISPLAY_MS)
}
const revealRecoveryCodes = async () => {
@@ -7,6 +7,7 @@ import {
isRecentAuthenticationCancelled,
requestWithRecentAuthentication,
} from '@/utils/recentAuthentication'
import { RECOVERY_CODE_DISPLAY_MS } from '@/utils/recoveryCodeDisplay'
export const recoveryCodeDialogProps = {
modelValue: {
@@ -52,7 +53,7 @@ export function useRecoveryCodeDialog(props, emit) {
const scheduleHide = () => {
clearTimeout(hideTimer)
hideTimer = setTimeout(clearCodes, 60000)
hideTimer = setTimeout(clearCodes, RECOVERY_CODE_DISPLAY_MS)
}
const isCurrentView = (version, userID) => (