From 378a0a5686b584306ad34d467cba95ae0a8869da Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Mon, 15 Jun 2026 11:56:45 +0800 Subject: [PATCH] perf: Logout countdown --- .../authentication/auth_fail_flash_message_standalone.html | 2 +- apps/templates/flash_message_standalone.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html index 1ac57cd92..c3ab04d87 100644 --- a/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html +++ b/apps/authentication/templates/authentication/auth_fail_flash_message_standalone.html @@ -56,7 +56,7 @@ } function redirect_page() { - if (time >= 0) { + if (time > 0) { var msg = message + ', ' + time + ' ...'; $('#messages').html(msg); time--; diff --git a/apps/templates/flash_message_standalone.html b/apps/templates/flash_message_standalone.html index 97a75e67a..4269f71e7 100644 --- a/apps/templates/flash_message_standalone.html +++ b/apps/templates/flash_message_standalone.html @@ -44,7 +44,7 @@ {% block custom_foot_js %}