From 0f7c8c25700bdc4f39cf12adf28f4aaf7e900575 Mon Sep 17 00:00:00 2001 From: feng626 <1304903146@qq.com> Date: Thu, 16 Sep 2021 10:14:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E5=8D=95=E5=A4=8D=E6=A0=B8bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/authentication/login_wait_confirm.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/authentication/templates/authentication/login_wait_confirm.html b/apps/authentication/templates/authentication/login_wait_confirm.html index 36584f26b..e72a44738 100644 --- a/apps/authentication/templates/authentication/login_wait_confirm.html +++ b/apps/authentication/templates/authentication/login_wait_confirm.html @@ -134,7 +134,6 @@ function cancelTicket() { } function cancelCloseConfirm() { - cancelTicket(); window.onbeforeunload = function() {}; window.onunload = function(){}; } @@ -158,6 +157,7 @@ $(document).ready(function () { cancelCloseConfirm(); window.location.reload(); }).on('click', '.btn-return', function () { + cancelTicket(); cancelCloseConfirm(); window.location = "{% url 'authentication:login' %}" })