mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
fix: 【登录超时】修复登录页面提示 <登录超时,请重新登录> 问题
This commit is contained in:
@@ -407,6 +407,15 @@
|
|||||||
$('#password-hidden').val(passwordEncrypted); //返回给密码输入input
|
$('#password-hidden').val(passwordEncrypted); //返回给密码输入input
|
||||||
$('#login-form').submit(); //post提交
|
$('#login-form').submit(); //post提交
|
||||||
}
|
}
|
||||||
|
function checkHealth() {
|
||||||
|
let url = "{% url 'health' %}";
|
||||||
|
requestApi({
|
||||||
|
url: url,
|
||||||
|
method: "GET",
|
||||||
|
flash_message: false,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
setInterval(checkHealth, 10 * 1000);
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user