请教下 docker 思源笔记密码登录后,多少时间退出登录?这个时间该如何设置,有时候感觉几分钟退出登录,有时候感觉半小时,有时候又感觉不会退出登录。
docker 思源笔记密码登录后,多少时间退出登录?
相关帖子
-
// 浏览器环境自动锁屏 JS片段 // author by JeffreyChen https://ld246.com/article/1755569597962/comment/1755598220592#comments (() => { const redirectToCheckAuth = (to = window.location.href) => { const url = new URL(window.location.origin); url.pathname = "/check-auth"; url.searchParams.set("to", to); window.location.href = url.href; }; const logout = () => { fetch("/api/system/logoutAuth", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({}) }) .then(() => redirectToCheckAuth()) .catch(() => redirectToCheckAuth()); }; // 每 30 分钟执行一次 if (!window.siyuan.isPublish && !window.navigator.userAgent.startsWith("SiYuan/")) setInterval(logout, 30 * 60 * 1000); })();2 回复 -
-
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于