feat: 完成 Passkey 能力与前后台加载优化
更新说明:\n1. 新增用户端与管理员端 Passkey 登录/注册/设备管理(最多3台,支持设备备注、删除设备)。\n2. 修复 Passkey 注册与登录流程中的浏览器/证书/CSRF相关问题,增强错误提示。\n3. 前台登录页改为独立入口,首屏仅加载必要资源,其他页面按需加载。\n4. 系统配置页改为静默获取金山文档状态,避免首屏阻塞,并优化状态展示为“检测中/已登录/未登录/异常”。\n5. 补充后端接口与页面渲染适配,修复多入口下样式依赖注入问题。\n6. 同步更新前后台构建产物与相关静态资源。
This commit is contained in:
@@ -60,8 +60,8 @@ def get_kdocs_status_api():
|
||||
status = uploader.get_status()
|
||||
live = str(request.args.get("live", "")).lower() in ("1", "true", "yes")
|
||||
|
||||
# 重启后首次查询时(last_login_ok is None)自动做一次实时状态校验
|
||||
should_live_check = live or status.get("last_login_ok") is None
|
||||
# 仅在显式 live=1 时做实时状态校验,默认返回缓存状态,避免阻塞页面加载
|
||||
should_live_check = live
|
||||
if should_live_check:
|
||||
live_status = uploader.refresh_login_status()
|
||||
if live_status.get("success"):
|
||||
|
||||
Reference in New Issue
Block a user