fix: 文件上传融合到graph.html(星图页面),删除冗余index.html

This commit is contained in:
root
2026-04-29 10:14:23 +08:00
parent 4fc8ca944b
commit df156ba840
3 changed files with 207 additions and 1412 deletions

View File

@ -149,8 +149,8 @@ def admin_required(f):
@app.route('/')
@login_required
def index():
"""返回聊天页面(默认首页)"""
return app.send_static_file('index.html')
"""默认首页 - 星图页面"""
return app.send_static_file('graph.html')
@app.route('/graph.html')
@ -159,13 +159,6 @@ def graph_html():
"""返回星图页面"""
return app.send_static_file('graph.html')
@app.route('/chat')
@login_required
def chat():
"""返回聊天页面"""
return app.send_static_file('index.html')
# 全局服务器和客户端实例
backend_server: BackendServer = None
backend_client: BackendClient = None