mirror of
https://gitcode.com/JianFeeeee/TrulyMEM-TrueHumanMEM.git
synced 2026-09-20 08:58:15 +00:00
修复TUI侧边栏和登录功能
- 修复登录逻辑判断错误,确保正确显示登录页面 - 修复登录成功后不关闭登录界面的问题 - 修复配置区域只显示标题栏的问题 - 添加TUI服务开关,对齐Web设置页面功能 - 完善后端配置处理,支持enable_web/enable_tui/web_port - 添加登录界面和管理员区域的CSS样式 - 修复Checkbox导入问题 - 优化管理员权限显示逻辑
This commit is contained in:
@ -469,10 +469,15 @@ class BackendServer:
|
||||
base_url = api_config.get("base_url", self._config.get("base_url", "https://api.deepseek.com"))
|
||||
model = api_config.get("model", self._config.get("model", "deepseek-v4-flash"))
|
||||
self.update_config(api_key, base_url, model)
|
||||
# 通用配置字段(如 message_timeout)
|
||||
for key in ["message_timeout"]:
|
||||
# 通用配置字段(如 message_timeout, enable_web, enable_tui, web_port)
|
||||
for key in ["message_timeout", "enable_web", "enable_tui", "web_port"]:
|
||||
if key in api_config:
|
||||
self._config[key] = int(api_config[key])
|
||||
if key == "web_port":
|
||||
self._config[key] = int(api_config[key])
|
||||
elif key in ["enable_web", "enable_tui"]:
|
||||
self._config[key] = bool(api_config[key])
|
||||
else:
|
||||
self._config[key] = int(api_config[key])
|
||||
|
||||
limits_keys = [
|
||||
"persona_update_max",
|
||||
|
||||
Reference in New Issue
Block a user