| 47 | }, { immediate: true }); |
| 48 | |
| 49 | function blinkAuthLogo(): void { |
| 50 | const el = authLogoRef.value; |
| 51 | if (!el) return; |
| 52 | el.classList.remove('blink-now'); |
| 53 | void el.getBoundingClientRect(); |
| 54 | el.classList.add('blink-now'); |
| 55 | if (authLogoBlinkTimer !== null) clearTimeout(authLogoBlinkTimer); |
| 56 | authLogoBlinkTimer = setTimeout(() => { |
| 57 | authLogoBlinkTimer = null; |
| 58 | el.classList.remove('blink-now'); |
| 59 | }, 300); |
| 60 | } |
| 61 | |
| 62 | onUnmounted(() => { |
| 63 | if (authLogoBlinkTimer !== null) clearTimeout(authLogoBlinkTimer); |