.style.transition = 'none';
            void progressBar.offsetWidth;
            progressBar.style.transition = `width ${delay}ms linear`;
            progressBar.style.width = '0'

            setAutoClose(delay);
        }

        // 设置自动隐藏
        function setAutoClose(delay) {
            clearTimeout(timeoutId);
            timeoutId = setTimeout(() => {
                validationNotice.style.display = 'none';
                validationNotice.classList.remove('visible');
            }, de