fix: 【登录超时】修复登录页面提示 <登录超时,请重新登录> 问题

This commit is contained in:
feng
2024-02-07 15:57:36 +08:00
committed by Bryan
parent 58d30e7f85
commit 6e506e3146

View File

@@ -407,6 +407,15 @@
$('#password-hidden').val(passwordEncrypted); //返回给密码输入input
$('#login-form').submit(); //post提交
}
function checkHealth() {
let url = "{% url 'health' %}";
requestApi({
url: url,
method: "GET",
flash_message: false,
})
}
setInterval(checkHealth, 10 * 1000);
</script>
</html>